【发布时间】:2010-06-07 17:58:51
【问题描述】:
如果不存在则创建表 XY ( x INT NOT NULL , y FLOAT NULL , 主键(x) )
INSERT INTO XY (x,y)
(select 1 as x ,(1/7) as y);
错误
Error code 1064, SQL state 42000: 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 'INSERT INTO XY (x,y)
(select 1 as x ,(1/7) as y)' at line 7
Line 1, column 1
有什么想法吗?
【问题讨论】:
标签: mysql select insert mysql-error-1064 division