4
Answers

Incorrect syntax near the keyword 'WHERE'.

Violeta Popa

Violeta Popa

11y
2.1k
1
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)