I have 1000 rows in a db2 table.I want to update first 100
records,How do I do it?

Answer Posted / brooks

is there identity column in this table, for example, if
there is a column indexnum int(supposed start from 1), you
can use the Update Table Set XXX=XXX where indexnum < 101

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you select a row using indexes in db2?

645


What is the purpose of using commit?

616


What is the connection string to connect to the DB2 Database ?

614


Explain various types of locks in db2?

689


What do you mean by cursor?

586






what is diffrence b/w file-aid tool and file-aid utility???

4181


What is dbrm in db2 database?

588


Which component is used to execute the sql statements?

619


How do I create a view in db2?

605


Explain about dbrm.

607


How will you return the number of records in table?

516


How is the value function used?

600


Why do we bind in db2?

631


What is the result of open cursor statement?

638


What is the role of union all and union

650