diff --git a/srce.pgsql b/srce.pgsql index 8af1773..4f49fdb 100644 --- a/srce.pgsql +++ b/srce.pgsql @@ -65,7 +65,7 @@ begin ----------------------------------------------------add create table verbage in front of column list-------------------------------------------------------- _t := format('CREATE TEMP TABLE csv_i (%s)', _t); - --raise notice '%', _t; + raise notice '%', _t; ----------------------------------------------------build the table----------------------------------------------------------------------------------------- @@ -77,4 +77,8 @@ begin end $$; -SELECT * FROM csv_i; \ No newline at end of file +--SELECT * FROM csv_i; + +COPY csv_i FROM 'C:\Users\ptrowbridge\downloads\transsearchcsv.csv' WITH (HEADER TRUE,DELIMITER ',', FORMAT CSV, ENCODING 'SQL_ASCII',QUOTE '"'); + +SELECT row_to_json(csv_i) FROM csv_i; \ No newline at end of file