Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 select all records from the table?

1119


Can we use commit inside a trigger?

1071


Why do we use partitions in sql?

1036


Is it important to partition hard disk?

1008


What are the types of variables use in pl sql?

1026


what is the difference between clustered and non clustered index in sql? : Sql dba

1108


What are inner outer left and right joins in sql?

1002


How to create an array in pl/sql?

1054


Explain 3 basic parts of a trigger.

1300


What is normalization in sql?

998


What are all the common sql functions?

1002


Does normalization improve performance?

1022


What is bind reference and how can it be created?

1005


What are stored procedures used for?

990


What is difference between primary and secondary key?

1010