Populating Primary Key Column using Sequence [message #606537] |
Sun, 26 January 2014 01:46 |
BS_99
Messages: 34 Registered: March 2010
|
Member |
|
|
Hi All,
i have a sequence called Seq_A:
Create sequence Seq_A
start with 1
incremented by 1
nocache;
Now Seq_A.Currval is 50 after some transactions.
I have an existing table called Tab_A
Create Table Tab_A(TID NUMBER PRIMARY KEY,
TNAME VARCHAR2(50));
Presently Tab_A is Having 1000 records and the values in TID is densely populated from 1 to 1000.
Now on i want to Use Seq_A to populate the TID of Tab_A.
How Can i do this?
|
|
|
|
|
|
|
|
|