Tom Allison escribió:

> Holy Crud!
> you mean to tell me I can replace:
> 
> insert into table(string) values(('one'),('two'),('three'));
> select idx from table where string in ('one','two','three');
> 
> with
> 
> insert into table(string) values(('one'),('two'),('three')) returning  
> idx;
> 
> ?????
> 
> I realize that this is an extension to standard SQL but it sure would  
> save me a lot.

You are wrong -- you can do it, but it is not an extension.  It is in
the standard.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to [EMAIL PROTECTED] so that your
       message can get through to the mailing list cleanly

Reply via email to