I\'m using PostgreSQL and am an SQL beginner. I\'m trying to create a table from a query, and if I run:
CREATE TABLE table_name AS (....query...) <
CREATE TABLE table_name AS (....query...)
It’s simple:
CREATE TABLE IF NOT EXISTS abc ( sql_id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, sender VARCHAR(20) NULL)