關于MYSQL中建表語法

在MYSQL中不支持

SELECT * INTO B FROM A

僅支持

CREATE TABLE B SELECT * FROM A

 

 

 

test' at line 1
mysql> use test
Database changed
mysql> drop table if exists c;
Query OK, 0 rows affected (0.03 sec)

mysql> select * into c from a;
ERROR 1327 (42000): Undeclared variable: c
mysql> create table c select * from a;
Query OK, 82 rows affected (0.06 sec)
Records: 82  Duplicates: 0  Warnings: 0

你可能感兴趣的:(mysql)