| От | Stefan Wild |
|---|---|
| Тема | Re: INSERT with SELECT not working in pgAdmin |
| Дата | |
| Msg-id | 887590.473.qm@web26702.mail.ukl.yahoo.com обсуждение |
| Ответ на | Re: Empty SELECT result at simultaneous calls (Craig Ringer <craig@postnewspapers.com.au>) |
| Ответы |
Re: INSERT with SELECT not working in pgAdmin
|
| Список | pgsql-general |
> Hey Stefan,
>
> The sounds like you have a field "id" in you "c_transactions" without
> default value (which usually should be nextval('some_sequence'::regclass).
> Do you create a sequence for "c_transactions"."id" ?
>
Hi Dmitriy,
yes it's right, the id column does not have a default value and it shouldn't also. What do you mean with "Do you create
asequence for "c_transactions"."id" ?" ? When values are inserted into the table, I find out in my code the next higher
valuefor the id and insert this with the data.
Thanks, Stefan
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера