Re: Subselect query for a multi table insert single query

Поиск
Список
Период
Сортировка
От norman@khine.net
Тема Re: Subselect query for a multi table insert single query
Дата
Msg-id 1032774990.30699@o-a-l.net
обсуждение исходный текст
Ответ на Subselect query for a multi table insert single query  ("Norman Khine" <norman@khine.net>)
Список pgsql-novice
Hi Tom,
I tried this on the command prompt but got the following error:

admin=> INSERT INTO business_address (street_name, town, county, postcode, county_id, business_name_id) values
('xcasc','ascasc', 'ascasc', 'acasc', 2, currval('business_name_business_name_seq')); 
ERROR:  business_name_business_name_seq.currval is not yet defined in this session

Any ideas as to what is going on.

Cheers

Norm

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Norman Khine"
Дата:
Сообщение: Re: Subselect query for a multi table insert single query
Следующее
От: "Joachim Smit"
Дата:
Сообщение: Disk space