将数据从一个表复制到另一个表
此代码从表中选择数据并将其显示在查询工具(通常是 SSMS)中
SELECT Column1, Column2, Column3 FROM MySourceTable;
此代码将该数据插入表中:
INSERT INTO MyTargetTable (Column1, Column2, Column3)
SELECT Column1, Column2, Column3 FROM MySourceTable;
此代码从表中选择数据并将其显示在查询工具(通常是 SSMS)中
SELECT Column1, Column2, Column3 FROM MySourceTable;
此代码将该数据插入表中:
INSERT INTO MyTargetTable (Column1, Column2, Column3)
SELECT Column1, Column2, Column3 FROM MySourceTable;