Re: serial autoincrement and related table - Mailing list pgsql-general

From Milos Prudek
Subject Re: serial autoincrement and related table
Date
Msg-id 40A8AA1B.7050807@bvx.cz
Whole thread Raw
In response to Re: serial autoincrement and related table  (Richard Huxton <dev@archonet.com>)
Responses Re: serial autoincrement and related table
List 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


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: serial autoincrement and related table
Next
From: Milos Prudek
Date:
Subject: Re: serial autoincrement and related table