Re: populate table with large csv file
| От | P.J. \"Josh\" Rovero |
|---|---|
| Тема | Re: populate table with large csv file |
| Дата | |
| Msg-id | 3F731CF0.2090800@sonalysts.com обсуждение исходный текст |
| Ответ на | populate table with large csv file ("Dave [Hawk-Systems]" <dave@hawk-systems.com>) |
| Ответы |
Re: populate table with large csv file
|
| Список | pgsql-general |
Dave [Hawk-Systems] wrote: > aside from parsing the csv file through a PHP interface, what isthe easiest way > to get that csv data importted into the postgres database. thoughts? Assuming the CSV file data is well formed, use psql and the COPY command. In psql, create the table. Then issue command: copy <tablename> from 'filename' using delimiters ','; -- P. J. "Josh" Rovero Sonalysts, Inc. Email: rovero@sonalysts.com www.sonalysts.com 215 Parkway North Work: (860)326-3671 or 442-4355 Waterford CT 06385 ***********************************************************************
В списке pgsql-general по дате отправления: