Explicit NULL for no INTEGER data? - Mailing list pgsql-general

From Rich Shepard
Subject Explicit NULL for no INTEGER data?
Date
Msg-id alpine.LNX.2.00.1102181453070.30932@salmo.appl-ecosys.com
Whole thread Raw
Responses Re: Explicit NULL for no INTEGER data? -- Update  (Rich Shepard <rshepard@appl-ecosys.com>)
List pgsql-general
   I have a data file I want to copy into a table. The column name and
attribute is:

     depth_seal INTEGER

one of the rows in the .csv file I want to bring into the table has no value
for this column, but there is no explicit NULL in the text file. When I try
to copy the file psql complains:

     ERROR:  invalid input syntax for integer: ""
     CONTEXT:  COPY water_well, line 1, column depth_seal: ""

Do I need an explicit NULL in that column?

Rich

pgsql-general by date:

Previous
From: "Gauthier, Dave"
Date:
Subject: Re: constraining chars for all cols of a table
Next
From: "David Johnston"
Date:
Subject: Re: constraining chars for all cols of a table