【发布时间】:2012-02-21 22:35:47
【问题描述】:
我有一个包含 18 列的表的数据库,第二列称为“desc”。我想删除“desc”下具有特定值的每一行。我正在使用此代码:
DELETE FROM items WHERE desc='Swap this note at any bank for the equivalent item.'
在 PHPMYADMIN 中使用这个命令会给我这个错误:
#1064 - 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 'desc='Swap this note at any bank for the equivalent item.'' at line 1
我环顾四周,但似乎找不到我做错了什么。
mySQL 版本是 5.5,phpMyAdmin 版本是 3.4.5。
【问题讨论】:
标签: php mysql sql database phpmyadmin