sqlserver复制一个表的结构,oracle中create table new_table as select * from old_table where 1=2
在sqlserver中select * into newtable from oldtable;
例如:select * into dbo.tmp_test_part from dbo.test_part where 1=2
本文介绍如何在SQLServer中复制一个表的结构而不复制数据,类似于Oracle中的 createtable new_table as select * from old_table where 1=2 的操作。通过使用 SQLServer 的 select * into newtable from oldtable; 语句实现。
sqlserver复制一个表的结构,oracle中create table new_table as select * from old_table where 1=2
在sqlserver中select * into newtable from oldtable;
例如:select * into dbo.tmp_test_part from dbo.test_part where 1=2
7768
1万+
3772
1071

被折叠的 条评论
为什么被折叠?