From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Poovendran Moodley <poovenm@gmail.com>
Cc: A. Kretschmer <andreas.kretschmer@schollglas.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: SQL INSERT/TRIGGER Help
Date: Mon, 10 Dec 2007 11:08:05 -0300
Message-ID: <20071210140805.GD8036@alvh.no-ip.org> (raw)
In-Reply-To: <b18bbf6f0712092327v1924db67n234bcb37aab634a9@mail.gmail.com>
References: <b18bbf6f0712092236m48fa2e28s80b7bbb30c80dc22@mail.gmail.com>
<20071210064425.GA917@a-kretschmer.de>
<b18bbf6f0712092327v1924db67n234bcb37aab634a9@mail.gmail.com>
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"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: alvherre@alvh.no-ip.org, poovenm@gmail.com, andreas.kretschmer@schollglas.com
Subject: Re: SQL INSERT/TRIGGER Help
In-Reply-To: <20071210140805.GD8036@alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox