数据库中 把A表中的a字段和b字段数据 复制到B表中的aa字段和bb字段?

日期:2008-03-30 14:34:33 人气:1

数据库中 把A表中的a字段和b字段数据 复制到B表中的aa字段和bb字段?

如果你存在ab表,那么需要用insert into,如果不存在b表,那么用select * into DB Code(sqlserver2005) if not exists (select * from sysobjects where name='tab1') begin create table tab1 ( id int primary key identity(1,1), column1 varchar(20), column2 varchar(2
    A+
热门评论