4
Reply

Incorrect syntax near the keyword 'WHERE'.

Violeta Popa

Violeta Popa

Apr 13 2013 2:30 PM
2.1k
Hi :) I have this code:

string insertNrContract = "INSERT INTO client (nr_contract) VALUES ('"
                        + nr_contract + "') WHERE id_client='" + id_client + "'";

and i get the error:
Incorrect syntax near the keyword 'WHERE'. I don't get what's missing. Any help? thanks

Answers (4)