Help for this page

Select Code to Download


  1. or download this
    # for instance, a program producing tab-delimited output:
    perl my_tsv.pl | psql -d dbname -c "copy mytable from stdin csv delimi
    +ter E'\t'"
    
  2. or download this
    # or if the data is in a tsv file already:
    < data.tsv psql -d dbname -c "copy mytable from stdin csv delimiter E'
    +\t'"