| От | Bruno Wolff III |
|---|---|
| Тема | Re: Import csv file into multiple tables in Postgres |
| Дата | |
| Msg-id | 20050304151146.GA19477@wolff.to обсуждение исходный текст |
| Ответ на | Re: Import csv file into multiple tables in Postgres (Deepblues <deepblues@gmail.com>) |
| Список | pgsql-novice |
On Thu, Mar 03, 2005 at 14:10:58 -0600, Deepblues <deepblues@gmail.com> wrote: > Thanks for all that information, My scenario looks like this ... > > I need to import an excel spreadsheet into the postgresql database . > I converted the excel spreadsheet into a csv file and now I have 3 > tables in my database where I need to import this data. Im new to both > perl and postgres. do you have any sample script that I can have a > look at which loads the csv file into a interface table ? If you are using 8.0, you should be able to use COPY (or /copy from psql) to read in the files with one copy command per file. If there are no quoted values in the csv files, then you can do this on older versions of Postgres.
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера