Input from files
Input from files
От:
Mark Jewiss <Mark.Jewiss@knowledge.com>
Дата:
Hello, I often use psql -f to input data from files that come from legacy systems/other people. Is there a way to input these into pgsql without the file having any insert commands into it? I've been given a large csv file that has come straight out of MS Excel, and don't really want to have to go all through the file entering the insert commands on either side of the values. Although I could use vi's global search and replace, but that is messy. Basically I just want to input a raw csv file.... Regards, Mark. -- Mark Jewiss Knowledge Matters Limited http://www.knowledge.com