Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: unique id for a populated table

Re: unique id for a populated table

From: Prasad Chavali <pchavali_at_assettech.com>
Date: Tue, 9 Mar 1999 18:12:10 -0700
Message-ID: <7c4gt7$683$1@nnrp02.primenet.com>


Try this:

Add a column UNQ_ID nuber;

update table_NAME set UNQ_ID = rownum;

This will populate the row with its rownum as the UNQ_ID. If you want you can append/convert and do multiple things with the rownum value to generate your UNQ_ID.

HTH Prasad Chavali
pchavali_at_assettech.com

Sajnish Gupta wrote in message <7c4bee$9le$1_at_mail1.wg.waii.com>...
>Hi,
>Is there a way I can create a sequential unique ID in a table that is
>populated with data.
>Thank you
>Sajnish
>
>
Received on Tue Mar 09 1999 - 19:12:10 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US