Copy records from csv in postgresql

CREATE TEMPORARY TABLE original_table_name_temp(like original_table_name including all);
COPY original_table_name_temp FROM 'path_of_your_csv';

Source: http://postgresql.1045698.n5.nabble.com/reverse-strpos-td1891709.html

Comments

Comments powered by Disqus