Created
May 17, 2012 15:08
-
-
Save robheittman/2719532 to your computer and use it in GitHub Desktop.
Looks like a RL CSV export
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table redlist_csv_export (species_id int,kingdom text,phylum text, class text, "order" text, family text, genus text, species text, authority text, infrarank text, infraname text, infraauth text, stock text, synonyms text, common_en text, common_fr text, common_sp text, redlist_status text, redlist_criteria text, redlist_criteria_version text, year text, trend text, petitioned text); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And then:
\encoding latin-1
\copy redlist_csv_export from 'Downloads/export-whatever.csv' with csv;