首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

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

2012-03-17 
报错1064(42000) 郁闷!!!我的数据库栏目namechar10numintsexcharcashintIDcharaddchar100passwordchar我的

报错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'; 

热点排行