COPY from and NULL values for double precisions fields

Started by Andrej Ricnik-Bayabout 19 years ago3 messagesgeneral
Jump to latest
#1Andrej Ricnik-Bay
andrej.groups@gmail.com

Hi Guys,

I'm currently mucking around w/ importing TAB-delimited files;
how can I import empty values into a double precision field?

COPY complains about nothing between the TABS, about "\N"
and other variations, as being
"invalid input syntax for type double precision:"

What *is* valid syntax for this? Can't find it for the life of me.

Cheers,
Andrej

#2Walter Vaughan
wvaughan@steelerubber.com
In reply to: Andrej Ricnik-Bay (#1)
Re: COPY from and NULL values for double precisions fields

Andrej Ricnik-Bay wrote:

I'm currently mucking around w/ importing TAB-delimited files;
how can I import empty values into a double precision field?

COPY complains about nothing between the TABS, about "\N"
and other variations, as being
"invalid input syntax for type double precision:"

For best help it would be good to include your copy statement. As a guess, I'd
say you need to include the following in the statement...

NULL ''

--
Walter

#3Andrej Ricnik-Bay
andrej.groups@gmail.com
In reply to: Walter Vaughan (#2)
Re: COPY from and NULL values for double precisions fields

On 3/5/07, Walter Vaughan <wvaughan@steelerubber.com> wrote:

For best help it would be good to include your copy statement. As a guess, I'd
say you need to include the following in the statement...

NULL ''

Thanks Walter, I found the cause of my troubles; it wasn't copy,
it was the data. I didn't check the structure, and copy fell over
the stupid line-feeds (^M) in the file.

Cheers,
Andrej