Search Postgresql Archives

Result order of Insert ... returning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!
I'm using INSERT ... RETURNING with multiply values, for example
INSERT INTO links.tags (name) VALUES ('tag x'), ('tag y') RETURNING
id, name
and fetch result. Is it guaranteed that order of returned rows will
always match order of values (that is, first returned row will be with
name='tag x' and second with 'tag y') or not? If not, is there any
nice method to order the result accordingly or i have to do it in
application (e.g. comparing "name"s)?
Thanks.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux