Violeta Popa

Violeta Popa

  • NA
  • 137
  • 164.1k

Incorrect syntax near the keyword 'WHERE'.

Apr 13 2013 2:30 PM
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)