[sqlserver] Insert data from one table into another table

Application scenario: Sometimes data needs to be migrated from the old table to the new table

SQL:

INSERT INTO tableA
(fieldA1, fieldA2, fieldA3)
SELECT
fieldB1, fieldB2, fieldB3
FROM
tableB

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325747807&siteId=291194637