INSERT with SELECT not working in pgAdmin

Поиск
Список
Период
Сортировка
От Stefan Wild
Тема INSERT with SELECT not working in pgAdmin
Дата
Msg-id 715492.32171.qm@web26702.mail.ukl.yahoo.com
обсуждение исходный текст
Ответы Re: INSERT with SELECT not working in pgAdmin  (Dmitriy Igrishin <dmitigr@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Colin 't Hart"
Дата:
Сообщение: Re: to_date conversion semantics?
Следующее
От: Aram Fingal
Дата:
Сообщение: Re: Installing Contrib Modules with a Precompiled Binary