Re: [SQL] Cast NULL into Timestamp?

2004-12-11 Thread Frank Bax
At 12:11 AM 12/11/04, Josh Berkus wrote: Wei, insert into table temp (tempname, tempdate) select distinct 'tempname', null from some_other_relevant_table; I don't think you're reporting the error exactly as it happened. Try cutting and pasting your actual PSQL session into your e-mail. Perhaps

[SQL] Cast NULL into Timestamp?

2004-12-10 Thread Wei Weng
I have a table create table temp ( tempdatetimestamp, tempnamevarchar(10) ); And I tried to insert the following: insert into table temp (tempname, tempdate) select distinct 'tempname', null from some_other_relevant_table; And I got an error that says column

Re: [SQL] Cast NULL into Timestamp?

2004-12-10 Thread Josh Berkus
Wei, insert into table temp (tempname, tempdate) select distinct 'tempname', null from some_other_relevant_table; I don't think you're reporting the error exactly as it happened. Try cutting and pasting your actual PSQL session into your e-mail. Perhaps you are mixing up the column order?

Re: [SQL] Cast NULL into Timestamp?

2004-12-10 Thread Stephan Szabo
On Fri, 10 Dec 2004, Wei Weng wrote: I have a table create table temp ( tempdatetimestamp, tempnamevarchar(10) ); And I tried to insert the following: insert into table temp (tempname, tempdate) select distinct 'tempname', null from

Re: [SQL] Cast NULL into Timestamp?

2004-12-10 Thread Steve Crawford
On Friday 10 December 2004 11:24 am, Wei Weng wrote: I have a table create table temp ( tempdatetimestamp, tempnamevarchar(10) ); And I tried to insert the following: insert into table temp (tempname, tempdate) select distinct 'tempname', null from