Write one update command to update seqno field of a table
on the basis of row number.

Answer Posted / gourvendra singh

You can update the seqno which is having the rownum=1 only.
for eg:
If you have a table dept in scott user, you can try the
following command:-

update dept
set deptno=90
where rownum=1;

the above will update the record of the table which having
the rownum=1. and if you want to update some other record
then you have to make query to make the required record as
the first record of the table.

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get unique records from a table?

516


Does access use sql?

553


What is interval partition?

539


What is date functions?

570


Can I copy :old and :new pseudo-records in/to an oracle stored procedure?

658






Is the primary key an index?

591


Is join and inner join the same?

533


What is the clause we need to add in function body to return variable?

538


Explain 3 basic parts of a trigger.

828


How do I run a program in pl sql?

495


Why should I use postgresql?

559


differentiate between float and double. : Sql dba

553


how are mysql timestamps seen to a user? : Sql dba

557


What is where clause in sql?

528


What is function and procedure in pl sql?

515