Migrate data between different database tables

Directly on the solution:

   Look at SQL insert commands it! 

             a: insert into tablename values ​​(value 1, value 2 and value 3, .............)

             b: insert into tablename (column 1, column 2, column 3, ..........) values ​​(value 1, value 2 and value 3, ............. .......)

   A program corresponding to the above :( a, if the number of data words can use this method)

                 insert into GAMECCDB.dbo.Persion

                 select P_name,P_age,P_gender

                 from GameccDB.dbo.Persion

  Corresponding to Scheme II above :( b)

                 insert into GAMECCDB.dbo.Persion (Per_Name,Per_Age,Per_Gender )

                 select P_name,P_age,P_gender

                 from GameccDB.dbo.Persion

Guess you like

Origin www.cnblogs.com/gamecc666/p/11275566.html