--表的复制或备份
--将student表复制到allstudent表,其中allstudent是没有的,通过执行sql语句会自动创建
--第一种方式:复制表的结构同时也复制原表内的数据
select * into allstudent from student
--第二种方式:只拷贝表的结构,不复制表中的数据,但是执行效率低
select * into allstudent from student where 1<>1
--第三种方式:只拷贝表的结构,不复制表中的数据,但是执行效率高
select top 0 * into allstudent from student
--第四种方式:向已存在的表备份数据(前提是两个表的结构相同,并且要插入数据的表提前建好了)
insert into allstudent select * from student