从另一个表创建表 [英] create table from another table
本文介绍了从另一个表创建表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从tab_old中选择*创建表tab_new,这在oracle中
但是id如何在sql server
create table tab_new as select * from tab_old this is in oracle
but how can id do that in sql server
推荐答案
中做到这一点?请参见 Google结果 [ ^ ]
看看 ^ ]
Have you Googled(Always your friend) it. See Google Results[^]
Have a look Here[^]
复制总表带有数据
Copy total table with data
select * into rajesh from code_Project
仅复制表结构
copy table structure only
select * into rajesh from code_Project where 2=1
这篇关于从另一个表创建表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文