How to import a CSV file into postgres and skip the first row (these are just column headers).
I'm trying to:
\COPY products(sight, department) from 'coy.csv' with (FORMAT CSV);
Adding a HEADER row will cause the first row to be the column heading.
COPY products (sight,department) FROM 'coy.csv' CSV HEADER;
http://www.postgresql.org/docs/current/static/sql-copy.html
Source: https://habr.com/ru/post/1499650/More articles:How to set color of child QLabels when hovering parent QFrame on QSS? - stylesheetArray modified by two others in python - pythonCan Cython code be compiled in dll, so can a C ++ application call it? - c ++When / Why should I use the C # method "WebPageExecutingBase.Href ()"? - c #Using Cython to provide functionality to another application - c ++TextBlock: text binding and StringFormat - wpfhow to make special marks outside the calibration chart - highchartsRJava error when working with Eclipse - eclipseHow to add a TextBlock text value from a database object value - c #Unmarshalling complex xml with nested children - javaAll Articles