Can anyone tell me why the following two sql lite insert statements are working:
tx.executeSql("INSERT INTO EVENTS ('name','altId','time') VALUES (?,?,?)",["one", "two","three"]);
tx.executeSql("INSERT INTO EVENTS ('name','altId') VALUES (?,?)",[("one", "two"),("three", "four")]);
but the statement below which I came up with following the answer to this question one:
tx.executeSql("INSERT INTO EVENTS ('name','altId','time') VALUES (?,?,?)",[("one", "two","three"),("four", "five","six")]);
throws error: 5 number of '?'s in statement string does not match argument count