IT:AD:SQL Server:HowTo:Clone A Table

Summary

The easiest way to create a copy of a table is to use a Transact-SQL command. Use SELECT INTO to extract all the rows from an existing table into the new table. The new table must not exist already:

SELECT * INTO CurrCustomers FROM Customers

  • /home/skysigal/public_html/data/pages/it/ad/sql_server/howto/clone_a_table.txt
  • Last modified: 2023/11/04 01:57
  • by 127.0.0.1