I have 1000 rows in a db2 table.I want to update first 100
records,How do I do it?
Answer Posted / rama krishna.
UPDATE DB2 SET COL=VAR/EXPR WHERE ROWNUM<=1OO;
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
What is reorg?
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
Is db2 a mainframe?
What is the purpose of using commit?
How many databases can be created inside an instance in db2 ?
How do you simulate the explain of an embedded sql statement in spufi/qmf?
List out the buffer pools in db2
Mention the definition of cobol in varchar field.
Can we delete records from view?
What is db2 purescale?
Define buffer pool.
Mention a credible reason why select* is never given preference in an sql program that has been embedded.
What are the full forms of spufi and dclgen and why are they used?
What is database reorganization?
Explain what are the various isolation levels possible?