copy postgres example
Example 1: copy table postgres
CREATE TABLE new_table AS
SELECT
*
FROM
existing_table
WHERE
condition;
Example 2: postgres copy command
COPY my_table FROM 'c:\downloads\file.csv' DELIMITERS ',' CSV QUOTE '''';
CREATE TABLE new_table AS
SELECT
*
FROM
existing_table
WHERE
condition;
COPY my_table FROM 'c:\downloads\file.csv' DELIMITERS ',' CSV QUOTE '''';