SQL语法错误

时间:2015-03-13 18:18:02

标签: mysql sql

我试图编写一个查询来删除数据库中的raw。这是查询:

"delete from ombrellone where PosizioneX='"+i+"'AND PosizioneY='"+j+"')");

我不知道自己错了什么。有人可以帮帮我吗?

例外是:

 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1

1 个答案:

答案 0 :(得分:0)

"delete from ombrellone where PosizioneX='" + i + "' AND PosizioneY = '" + j +"'";