[UPHPU] Postgres Insert ID

Kyle Waters unum at unum5.org
Wed Oct 22 17:46:34 MDT 2008


Roberto Mello wrote:
>
>
> INSERT INTO mytable (id, foo, bar, ham spam)
> VALUES (DEFAULT, 'blah', 'bleh', 'pizza', 'pizza')
> RETURNING id;
>   
I wish someone would have told me that before.  It would have saved me 
from setting up the rule all the time.  :)

Kyle


More information about the UPHPU mailing list