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 fetch values from testtable1 that are not in testtable2 without using not keyword?

1209


How do I run a pl sql program?

1121


Is it possible to remove child records without removing master table records...the two having pk,fk relationship?

1260


What is difference between sql and mysql?

1114


How can I speed up sql query?

953


Is a secondary key the same as a foreign key?

1026


Is pl sql still used?

968


what is the difference between sql and t-sql? : Transact sql

1080


Are stored procedures faster than queries?

941


What is oracle sql called?

914


Are sql connections encrypted?

1014


What is meaning of <> in sql?

1063


How many joins in sql?

994


how to calculate the difference between two dates? : Sql dba

1050


What is the non-clustered index in sql?

1054