returning inserted id

Поиск
Список
Период
Сортировка
От Matt A.
Тема returning inserted id
Дата
Msg-id 20050821195627.8524.qmail@web35209.mail.mud.yahoo.com
обсуждение исходный текст
Ответы Re: returning inserted id  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-sql
this may have been asked a thousand times but i
haven't found a standard answer...


MSSQL
set nocount on
insert into (column) values (value)
select identityid = @@identity
set nocount off


POSTGRESQL
*cricket cricket* :)


How is this done? By a trigger function? Or is it
natively supported? Could I get an example on how to
do it too? 

Thanks,
Matt

    
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 


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

Предыдущее
От: "Matt L."
Дата:
Сообщение: nullif('','') on insert
Следующее
От: Bernard Henry Voynet
Дата:
Сообщение: Unwanted nested dollar-quoted constants