SQL COPY TABLE

SQL COPY TABLE  :

If you want to copy a SQL table into another table in the same SQL server database, it is possible by using the select statement.

The syntax of copying table from one to another is given below:

SELECT *  INTO <destination_table>  FROM  <source_table>

For example, you can write following command to copy the records of hr_employee table into employee table.

SELECT *  INTO admin_employee  FROM  hr_employee;

 

Scroll to Top