INSERT with SELECT not working in pgAdmin - Mailing list pgsql-general

From Stefan Wild
Subject INSERT with SELECT not working in pgAdmin
Date
Msg-id 715492.32171.qm@web26702.mail.ukl.yahoo.com
Whole thread Raw
Responses Re: INSERT with SELECT not working in pgAdmin  (Dmitriy Igrishin <dmitigr@gmail.com>)
List pgsql-general
Hi guys,

I'm trying to merge two tables to one with INSERT and SELECT commands:

INSERT into c_transactions (timestamp) SELECT entrytimestamp from c_transactions

INSERT into c_transactions (timestamp) SELECT exittimestamp from c_transactions

But getting this error on execution (in pgAdmin): "ERROR: null value in column "id" violates not-null constraint
SQL Status:23502"

What I'm doing wrong or is there another possibility for table merging?

I'm using postgres 8.3.

Thanks.




pgsql-general by date:

Previous
From: "Colin 't Hart"
Date:
Subject: Re: to_date conversion semantics?
Next
From: Aram Fingal
Date:
Subject: Re: Installing Contrib Modules with a Precompiled Binary