Re: [GENERAL] PL/pgSQL help

Поиск
Список
Период
Сортировка
Искать
От
Dustin Sallings
Тема
Re: [GENERAL] PL/pgSQL help
Дата
Msg-id
Pine.SGI.3.95.990603120719.5964A-100000@bleu.west.spy.net
Ответ на
Re: [GENERAL] PL/pgSQL help (tolik@icomm.ru (Anatoly K. Lasareff))
Список
Дерево обсуждения
PL/pgSQL help Mike Haberman <mikeh@ncsa.uiuc.edu>
On 3 Jun 1999, Anatoly K. Lasareff wrote:

# Yes. 'serial' type implements as 'int' type for field and sequence,
# which mane is __seq. So you can do this: 
# 
# INSERT into Network (parentID, networkName) values (pid, mname);  netid
# := Network_networkID_seq.last_value; 

	That doesn't tell you the last value you added, that tells you the
last value that was added at all.  currval('network_networkid_seq') tells
you the last one you added.

--
SA, beyond.com           My girlfriend asked me which one I like better.
pub  1024/3CAE01D5 1994/11/03 Dustin Sallings 
|    Key fingerprint =  87 02 57 08 02 D0 DA D6  C8 0F 3E 65 51 98 D8 BE 
L_______________________ I hope the answer won't upset her. ____________

В списке pgsql-general по дате отправления
От: Peter T Mount
Дата:
Сообщение: Re: PostgreSQL Install
От: Dustin Sallings
Дата:
FAQ