mardi 17 février 2015

Insert into table with primary key bound values

I have a table that consists of an integer primary key and 3 text strings. I am want to be able to insert a new row by just specifying the 3 strings, but I want to use positional binding e.g. INSERT INTO mytable VALUES (?,?,?) and the bind the values When I try this the query fails with a parameter miscount.


Is this at all possible or is there another way?


Aucun commentaire:

Enregistrer un commentaire