SQL Server 2000 导入导出数据:从一个表到另一个表

T-SQL:

insert into China(Title,CName,City,PostCode,X,Y,Map) select Word,CName,City,PostCode,X,Y,Map from zhejiang_b

China已经存在

Not exists

insert into China(Title,CName,City,PostCode,X,Y,Map) select Word,CName,City,PostCode,X,Y,Map from zhejiang_b

The SELECT INTO statement retrieves data from one or more database tables, and assigns the selected values to variables or collections.


你可能感兴趣的:(SQL Server 2000)