Generar un consecutivo

From: "Yesid E(dot) Ortiz M(dot)" <yortiz(at)computec(dot)com(dot)co>
To: <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Generar un consecutivo
Date: 2004-04-29 20:31:17
Message-ID: 1083270676.3287.2.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Cordial Saludo

¿Como se hace en un select para generar un numero consecutivo que
identifique cada registro del resultado de un query?

Es decir no quiero el oid sino un numero que indique algo asi como:

1 XXXX YYYYY
2 ZZZZ VVVVV
3 CCCC
4 DDDDD

Agradezco sus comentarios

--
Yesid E.Ortiz M.
Ing. de Desarrollo
Computec S.A.- Documentos
Tel. (571) 2607111
BOG. COL.

**************************************************************************
Nota: La información transmitida a través de este correo electrónico es confidencial y está dirigida únicamente a su destinatario. Su reproducción, lectura o uso está prohibido a cualquier persona o entidad diferente. Aunque Computec S.A. ha realizado su mejor esfuerzo para asegurar que el presente mensaje y sus archivos anexos se encuentran libre de virus y defectos que puedan llegar a afectar los computadores o sistemas que lo reciban, no se hace responsable por la eventual transmisión de virus o programas dañinos por este conducto, y por lo tanto es responsabilidad del destinatario confirmar la existencia de este tipo de elementos al momento de recibirlo y abrirlo. Ni Computec S.A. ni ninguna de sus divisiones o dependencias aceptan responsabilidad alguna por eventuales daños o alteraciones derivados de la recepcion o uso del presente mensaje.
**************************************************************************
Note: The information transmitted through this E-mail is confidential and is intended to reach only its addressee. Reproduction and usage of this message or its contents, in whole or in part, are strictly forbidden without the prior written consent of Computec S.A. Computec S.A. has made its best efforts to ensure that this message and any attached files are free of any virus or other potentially harmful content, but makes no representations to this effect. Addressee shall assume full responsibility for ensuring that opening or reading this message and any attachments will not result in harm to their system. Neither Computec nor any of its divisions accepts any responsibility for damages arising from opening or reading this message or any attachments thereto.
**************************************************************************

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Mauricio E. Pastorini Torres 2004-04-29 21:32:37 Re: Generar un consecutivo
Previous Message utaladriz 2004-04-29 20:19:46 Re: Postgresql, JSP, XML, XSL