Создать таблицу из существующей таблицы в SQL
//this will create new Empty table
CREATE TABLE TableName AS (SELECT * FROM ExistingTable WHERE 1=2);
Magnificent Millipede
//this will create new Empty table
CREATE TABLE TableName AS (SELECT * FROM ExistingTable WHERE 1=2);
CREATE TABLE florist
AS SELECT
*
FROM product
WHERE category = ’flower’;
INSERT INTO new_table
SELECT * FROM old_table