第一种情况:目标数据库没有相应的表:
SELECT [code1] ,[code2] ,[code3] ,[code4] ,[name] into [xycentre].[dbo].[RectCode] FROM [acftu].[dbo].[RectCode] where code2='00' order by code1;
第二种情况:目标数据库存在相同结构的表:
insert into [xycentre].[dbo].[RectCode] select [code1] ,[code2] ,[code3] ,[code4] ,[name] from [acftu].[dbo].[RectCode] where code2='00' order by code1;