importing data

Поиск
Список
Период
Сортировка
Искать

importing data

От:
Craig White <craigwhite@azapple.com>
Дата:
I am getting an error when I import, invalid input syntax for type
boolean - which is empty. Is there any way around this of must I
necessarily have \N ?

Craig

Re: importing data

От:
Chris <dmagick@gmail.com>
Дата:
Craig White wrote:
> I am getting an error when I import, invalid input syntax for type
> boolean - which is empty. Is there any way around this of must I
> necessarily have \N ?

They will have to be changed to nulls - the boolean type only allows 
true, false or null:

http://www.postgresql.org/docs/8.1/static/datatype-boolean.html

-- 
Postgresql & php tutorials
http://www.designmagick.com/

Re: importing data

От:
Greg Stark <gsstark@mit.edu>
Дата:
Chris  writes:

> Craig White wrote:
> > I am getting an error when I import, invalid input syntax for type
> > boolean - which is empty. Is there any way around this of must I
> > necessarily have \N ?

You could try with:

COPY ... WITH NULL AS '' 


-- 
greg
FAQ