Re: How can I insert NULL into column with the type of timestamp?

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How can I insert NULL into column with the type of timestamp?
Date: 2007-12-12 15:32:49
Message-ID: 20071212153249.GD1676@frubble.xen.chris-lamb.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Dec 11, 2007 at 10:29:04AM +0800, bookman bookman wrote:
> So it means that the column with type timestamp cannot accept a NULL
> .Is there any way I can tansfer this table into postgre?How can i deal
> with NULL in this case?

NULL values are encoded as an unquoted \N by default in PG. You've got
a few ways of fixing things then. Tell MS-SQL to do the same, write a
sed script to do the translation, or use the "NULL AS 'NULL'" option in
the COPY command.

Sam

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2007-12-12 15:33:25 Re: Southern California Linux Expo
Previous Message smiley2211 2007-12-12 15:17:24 Re: Trigger - will not perform INSERT