读书人

报错1064(42000) 郁闷!解决方法

发布时间: 2012-03-17 19:06:28 作者: rapoo

报错1064(42000) 郁闷!!!
我的数据库栏目
name char 10
num int
sex char
cash int
ID char
add char 100
password char

我的SQL 语句

mysql > update client set Add = "a" where name = "aa";

Add 这一栏 中 123 数据是存在的 而且 如果我换成其他的 栏目 比如cash 之类的 不报错

那句报错是:
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 'Add = "a"' at line 1

[解决办法]


SQL code
update client set `Add` = 'a' where name = 'aa'; 

读书人网 >Mysql

热点推荐