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 composite primary key in sql?
what is meant by urlencode and urldocode? : Sql dba
What is mdb stand for?
what are ddl statements in mysql? : Sql dba
What is package in pl sql with an examples?
How many types of normalization are there?
What are the indexing methods?
What is the maximum number of rows in sql table?
what are the 'mysql' command line options? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
How to add, remove, modify users using sql?
What are the types of sql commands?
What is denormalization in a database?
How delete all data from all tables in sql?
What action do you have to perform before retrieving data from the next result set of a stored procedure ?