看板 PHP 關於我們 聯絡資訊
※ 引述《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
Joe8 :嗚嗚 原文被我砍了 太丟臉 我把`打成' 原來check是 06/30 17:53
Joe8 :保留字 Orz 謝謝各位的熱心! 06/30 17:53