此SQL语句在PHP中使用:
Insert into Table from AS Select * from Tabl1 where id='5'有什么线索可以解释为什么它没有将Table1中的值插入到表中?用户执行此语句以创建副本。
发布于 2011-12-18 00:45:23
去掉"FROM AS“,它就可以工作了。请参阅http://dev.mysql.com/doc/refman/5.0/en/ansi-diff-select-into-table.html
发布于 2011-12-18 00:41:56
删除from as
Insert into Table (Select * from Tabl1 where id='5')
(顺便说一句,为什么不仅仅是5,为什么是'5'?id实际上是一个字符串值吗?)
https://stackoverflow.com/questions/8546211
复制相似问题