create empty table from existing table
//this will create new Empty table
CREATE TABLE TableName AS (SELECT * FROM ExistingTable WHERE 1=2);
create empty table from existing table
//this will create new Empty table
CREATE TABLE TableName AS (SELECT * FROM ExistingTable WHERE 1=2);
Write a query to create an empty table from an existing table?
CREATE TABLE new_table
AS (SELECT *
FROM old_table WHERE 1=2);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us