Use Select... in SQL Server... Into statement
The following types can be used:
1. Full table backup: for example, select * inot T1 from titles
2. Back up some columns of the table (write the column list without writing *) or some rows (with the where condition)
Example: Select title_id, title, price into T2 from titles-partial Columns
Select * into T2 from titles whree price> 10-partial rows
Select title_id, title, price into T2 from titles whree price> 10-partial rows and partial Columns
3. Only copy the table structure: for example, select * inot T1 from titles where 1 = 2
4. the query result is from multiple tables, for example:
Select title_id, title, pub_name into T3
From titles t inner join publishers P
On T. pub_id = P. pub_id
5. Select * into: name of the database to be copied. DBO. Table name from original database name. DBO. Table Name