Topic: SQL*Plus and PL/SQL >> Insert Sr No for all the Rows in a Table
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: Insert Sr No for all the Rows in a Table |
| vicky |
Posted: Sep 11, 2007 06:52:47 AM |
Total Post: 1
Joined: Aug, 2007
|
Hi,
We have a table with 600000 rows ,each row having 2 columns viz name and empid.
Now we have to insert ( assign ) Sr No in a sequence from 1 to 600000 corresponding to each row .
Kindly help me out with this.
Thanking you in advance. |
|
|
Ramesh Joyisa |
| Posted: Sep 11, 2007 11:30:16 PM | |
|
Total Post: 245
Joined: Aug, 2007
|
Generate sr.no. using a database sequence and then update the table
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 843 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gitesh Trivedi | 322 |
| Gopu Gopi | 272 |
| neeraj sharma | 252 |
| Ramesh Jois | 245 |
| Bishal Khetan | 207 |
|
|