Answers for "create empty table from existing table"

SQL
1

create empty table from existing table

//this will create new Empty table

CREATE TABLE TableName AS (SELECT * FROM ExistingTable WHERE 1=2);
Posted by: Guest on January-31-2022
1

Write a query to create an empty table from an existing table?

CREATE TABLE new_table
  AS (SELECT *
      FROM old_table WHERE 1=2);
Posted by: Guest on May-12-2021

Code answers related to "create empty table from existing table"

Code answers related to "SQL"

Browse Popular Code Answers by Language