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

What is percent sign in sql?

1324


What are the three pl sql block types?

1049


what is 'mysqld'? : Sql dba

1017


how to write date and time literals? : Sql dba

1010


Can procedure in package be overloaded?

1141


Why we use joins in sql?

1036


Name the operator which is used in the query for pattern matching?

1004


Which is faster subquery or join?

1271


What is meant by cursor in sql?

1061


how to do backup entire database? : Transact sql

1195


What are field types?

1052


What is attribute indicator in pl sql?

1068


What is rank dense_rank and partition in sql?

1086


What is the difference between Union and Union all. Which is faster.

1441


What is user in sql?

1077