Re: serial autoincrement and related table

From: Milos Prudek <prudek(at)bvx(dot)cz>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: serial autoincrement and related table
Date: 2004-05-17 12:03:39
Message-ID: 40A8AA1B.7050807@bvx.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Alternatively, you could rewrite this query:
> "INSERT INO msg (idmember,txt) VALUES (currval('members_idmember_seq'),
> %s);"

Cool. You helped me demolish 3 lines of code with no compromise in
legibility.

--
Milos Prudek

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marco Colombo 2004-05-17 12:36:37 Re: serial autoincrement and related table
Previous Message Richard Huxton 2004-05-17 11:56:02 Re: serial autoincrement and related table