Skip to content

Instantly share code, notes, and snippets.

@robheittman
Created May 17, 2012 15:08
Show Gist options
  • Save robheittman/2719532 to your computer and use it in GitHub Desktop.
Save robheittman/2719532 to your computer and use it in GitHub Desktop.
Looks like a RL CSV export
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);
@robheittman
Copy link
Author

And then:
\encoding latin-1
\copy redlist_csv_export from 'Downloads/export-whatever.csv' with csv;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment