From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | MIGUEL CANCHAS <mcanchas(at)tsr(dot)com(dot)pe> |
Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: EJEMPLO DE RETURNING |
Date: | 2007-11-16 21:00:20 |
Message-ID: | 20071116210020.GC12131@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
MIGUEL CANCHAS escribió:
> Este es el ejemplo
> INSERT INTO distributors (did, dname) VALUES (DEFAULT, 'XYZ Widgets')
> RETURNING did;
>
> Y lo saco asi pero me da error
> INSERT INTO ACCESOS_USUARIOS(IDUSUARIO, NOMUSUARIO,
> CLAVUSUARIO)VALUES(DEFAULT, 'MIGUEL','101010')
> RETURNING IDUSUARIO;
>
> ERROR: syntax error at or near "RETURNING" at character 100
>
> Si lo ejecuto sin el RETURNING IDUSUARIO graba bien
> A que se debe mi error ?
Tu tienes claro que RETURNING es nuevo en 8.2 verdad?
--
Alvaro Herrera http://www.amazon.com/gp/registry/5ZYLFMCVHXC
"Those who use electric razors are infidels destined to burn in hell while
we drink from rivers of beer, download free vids and mingle with naked
well shaved babes." (http://slashdot.org/comments.pl?sid=44793&cid=4647152)
From | Date | Subject | |
---|---|---|---|
Next Message | Gabriel Hermes Colina Zambra | 2007-11-16 21:00:56 | Re: Copias de seguridad de toda la base de datosPostgres |
Previous Message | MIGUEL CANCHAS | 2007-11-16 19:19:24 | EJEMPLO DE RETURNING |