天天看點

SQL語句建立相同結構的表

--Oracle的語句

create table sa_salaryRecord as select * from sa_salary where 1=2;

--MSSQL的語句

select * into sa_salaryRecord from sa_salary where 1=2;

注:1=2目的是為了防止資料的複制 

本文轉自 netcorner 部落格園部落格,原文連結:http://www.cnblogs.com/netcorner/p/3547984.html   ,如需轉載請自行聯系原作者