Re: SQL INSERT/TRIGGER Help

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: SQL INSERT/TRIGGER Help
Дата
Msg-id 20071210140805.GD8036@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: SQL INSERT/TRIGGER Help  ("Poovendran Moodley" <poovenm@gmail.com>)
Список pgsql-sql
Poovendran Moodley escribió:
> I'm not really sure how to the *currval() *method. I've read up on it and I
> noticed it works with *nextval()* and *setval()*. The parameter for *
> currval()* is a regex - is there a regex to represent the most recently
> automatically generated number ( i.e. a serial field)?

It's not a regex.  I assume you are confused because it says "regclass".
This is shorthand for "registered class" (where "class" is a synonymous
for "relation", in this case a sequence).

-- 
Alvaro Herrera                  http://www.amazon.com/gp/registry/5ZYLFMCVHXC
"La felicidad no es mañana. La felicidad es ahora"


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

Предыдущее
От: "Stefan Scheidegger"
Дата:
Сообщение: Re: INSERT INTO relational tables
Следующее
От: Scott
Дата:
Сообщение: Insert Rule, Multiple Insert, Update Problem