以下是我的SQL查詢:SQL查詢中插入數據不能正常工作
嘗試1
INSERT INTO `product`(`productid`, `title`, `category`, `description`)
VALUES (NULL,`iMac`,`Desktop`,`With its enhanced, big and beautiful display, the new Apple iMac M-D093-B/A 21.5 Desktop Computer renders your movies, photos, web pages and other graphics in truly jaw-dropping detail.`)
嘗試2
INSERT INTO `product`(`productid`, `title`, `category`, `description`)
VALUES(` `,`iMac`,`Desktop`,`With its enhanced, big and beautiful display, the new Apple iMac M-D093-B/A 21.5 Desktop Computer renders your movies, photos, web pages and other graphics in truly jaw-dropping detail.`)
我不斷收到一個錯誤:MySQL returned an empty result set (i.e. zero rows). (Query took 0.0003 sec)
我不明白我做錯了什麼。這是我的列名列表
1 productid int(11)
2 title varchar(100)
3 category varchar(100)
4 description varchar(2000)
表名:產品
你的報價是部分不正確。請參閱http://stackoverflow.com/questions/11321491/mysql-when-to-use-single-quotes-double-quotes-and-backticks字符串文字需要使用單引號,而不是反引號。 – 2013-02-28 14:10:42
我也試過。它似乎沒有工作。 – 2013-02-28 14:17:39
確實插入操作返回空結果集(即零行)?我很困惑... – 2013-02-28 14:33:16