自己在本地测试MySQL时,需要用到select into ,简单测试了一下
mysql> select * into nod from NODES;
ERROR 1327 (42000): Undeclared variable: nod
自己网上查了一下,发现在mysql中不支持 :
SELECT * INTO B FROM A
但是支持
CREATE TABLE B SELECT * FROM A
重新测试:
mysql> CREATE TABLE nod select * from NODES;
Query OK, 2 rows affected (0.08 sec)
Records: 2 Duplicates: 0 Warnings: 0
成功!