遇到\语法错误 - java derby

时间:2017-06-14 19:45:22

标签: java sql insert derby

我正在尝试执行此操作:

    String qu = "INSERT INTO CLIENT(name,surname,pin,address,salary) VALUES ("
    + "'" + tempName + "',"
    + "'" + tempSurname+ "'," 
    + tempPin
    + "'" + tempAddress + "',"
    + tempMoney
    + ")";

但我得到了这个:

Exception at execQuery:dataHandlerSyntax error: Encountered "\'" at line 1, column 83.
你能告诉我我做错了什么吗? Pin是长变量,金钱是双变量。

0 个答案:

没有答案