1
Reply

Write a query to create a new table which consists of data and structure copied from the other table.

Uday Dodiya

Uday Dodiya

2y
3.1k
2
Reply

    Using the SELECT INTO command:

    1. SELECT * INTO NewTable FROM EmployeeInfo WHERE 1 = 0;

    Using the CREATE command :

    1. CREATE TABLE NewTable AS SELECT * FROM EmployeeInfo;