复制表结构及数据到新表
select * into 目的表名 from 原表名
只复制表的结构:
SELECT * INOT t1 FROM titles WHERE 1=2
查询结果来源于多个表:如:
SELECT title_id,title,pub_name INTO t3
FROM t1 INNER JOIN t2
ON t1.fk=t2.pk
select * into 目的表名 from 原表名
SELECT * INOT t1 FROM titles WHERE 1=2
SELECT title_id,title,pub_name INTO t3
FROM t1 INNER JOIN t2
ON t1.fk=t2.pk