日期:2014-05-19  浏览次数:20497 次

友情提问:关于表的复制.
数据库table 下有很多表,我现在想复制其中一张表:text.然后将其重新命名,在保存在数据库table下.
该如何~~

------解决方案--------------------
select * into NewTableName from [text]
------解决方案--------------------
select * into 新表 from text
------解决方案--------------------

Use [table]
GO
Select * Into NewTable From [text]
------解决方案--------------------
祇需要複製表結構的話

select * into '新表名 ' from [text]

就可以了
------解决方案--------------------
create table bbb( field ...)
insert bbb
select * from text
--bbb 你要命名的tablename
--field ... 對應 text中的列名