Re: copy files to postgresql

Поиск
Список
Период
Сортировка
От Jeff Eckermann
Тема Re: copy files to postgresql
Дата
Msg-id 20020806132325.38254.qmail@web20809.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: copy files to postgresql  (John Zhang <jzhang@jimmy.harvard.edu>)
Ответы Re: copy files to postgresql  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
I believe that soon-to-be-released version 7.3 will
have the ability to import data to specific columns,
as you are trying to do.  For now, you will have to
edit your input file to insert values (even if null)
for the missing columns.  The default null
representation expected by COPY is "\N" (backslash,
upper case "N"), or you can specify another using the
syntax "\copy .... with null as 'whatever'"

--- John Zhang <jzhang@jimmy.harvard.edu> wrote:
> I was trying to copy files to columns of a
> PostgreSQL database table using \copy 
> ( e. g. \copy mytable (column names here) from 'my
> file' using delimiters '\t'). 
> PostgreSQL does not seem to like the column names
> part. Could someone help me 
> with that? Thanks.
> >   Put the text of the welcome message here.
> > 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com


В списке pgsql-sql по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Table design question...
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Transitive Closure