Write one update command to update seqno field of a table
on the basis of row number.
Answer Posted / manoranan sethy
create sequence s1
start with 1
/
create table t1
(
tid number
);
insert into t1 values (s1.nextval);
insert into t1 values (s1.nextval);
insert into t1 values (s1.nextval);
insert into t1 values (s1.nextval);
insert into t1 values (s1.nextval);
select rownum, tid from t1;
update t1 set tid=6 where rownum=1;
select rownum, tid from t1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is sqlservr exe?
How is use pl and sql?
what are all the different normalizations? : Sql dba
What is the usage of nvl function?
Explain ddl statements in pl/sql?
what is sp_pkeys? : Transact sql
What are tables in sql?
How do I count records in sql?
What is trigger explain it?
What are the different datatypes available in PL/SQL?
Is pl sql useful?
Can 2 queries be executed simultaneously in a distributed database system?
Explain the order of sql statement execution?
What is the execution plan in sql?
What is the difference between clustered and non-clustered index in sql?