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
Is not null in sql?
What is normalisation and its types?
what is the difference between myisam static and myisam dynamic? : Sql dba
What are the types of index in sql?
What is cross join sql?
What are the two types of exceptions.
How consistent is the view of the data between and within multiple sessions, transactions or statements ?
What does rownum mean in sql?
What is the use of sql trace?
Why select is used in sql?
What is rownum in sql?
Why coalesce is used in sql?
what is a cursor? : Sql dba
Can variables be used in sql statements?
What is parallel hint?