两个表的更新、表的复制

update 表1 set  from 表1,表2 where 条件

表的复制数据

1.select * into newtable from table

2.insert into table select table2

   select identity(int,1,1),* into newtable from ..      这条语句有时挺管用的

posted @ 2011-05-12 11:05  乐上  阅读(187)  评论(0编辑  收藏  举报