作者liaosankai (低温烘焙)
看板PHP
标题Re: [请益] update语法
时间Mon Jun 30 17:49:34 2008
※ 引述《Joe8 (Beautiful Stranger)》之铭言:
: 写程式写到昏头了
: 一句update的SQL语法却找不出错误
: 麻烦帮我看看 谢谢
: update mytable set check = '1'
: where no = '3'
关键字请用大写@_@,试试下面冗长版
UPDATE `mytable` SET `mytable`.`check` = '1' WHERE `mytable`.`no` = '1';
: 我想把编号3的资料内栏位check值设成1
: 结果一直给我错误:
: MySQL 传回: 说明文件
: #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
: 'check = '1'
: where no = '3'' at line 1
: 到底哪里有错 Orz 告诉我吧3Q
--
我的乐多网志
http://blog.roodo.com/liaosankai
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.105.48.168
1F:推 Joe8 :呜呜 原文被我砍了 太丢脸 我把`打成' 原来check是 06/30 17:53
2F:→ Joe8 :保留字 Orz 谢谢各位的热心! 06/30 17:53