以下是我的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