In table three columns with 1 milion records(here there is
no sequence values) i want add one more column with
sequence values from the first how it is posible?
Answer Posted / shekharjchandra
Hi
That's a simple one . (if table is tab1)
1. Add column first
ALTER TABLE tab1 add col1 number ;
2. Update the col1 of tab1
UPDATE tab1 SET col1=ROWNUM.
This will populate all the rows in sequential numbers.
Hope this solves u r problem
regards
JC
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
explain access control lists. : Sql dba
What is audit logout in sql profiler?
What is the execution plan in sql?
What is a stored procedure in sql with example?
Can you call pl/sql package functions from within a fast formula?
What is sql in oracle?
discuss about myisam index statistics collection. : Sql dba
What is mutating error?
What is snowflake sql?
How much ram can sql express use?
What are tables and fields?
How sql query is executed?
What does trigger mean in psychology?
What is a database event trigger?
What is auto increment feature in sql?