SQL复制表结构代码,之后填充数据

Posted on 2007-09-10 09:11  xublogs  阅读(160)  评论(0)    收藏  举报
先把表forum_root_post_9 改名为forum_root_post_92

select top 0 * 

into forum_root_post_9

from forum_root_post_92

 

该完表结构再执行下面的语句了

 

insert into forum_root_post_9

select * from forum_root_post_92