When would you prefer to use VARCHAR?
Answers were Sorted based on User's Feedback
Answer / s
The obvious benefit is savings in disk space. Thus reduced
row length means more rows per page which means lesser
getpages. Fewer getpages mean less locks hence less CPU
costs and less I/O. Use of VARCHAR reduces the number of
bytes passed between DB2 and application. There is a CPU
cost associated with each byte of data moved.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / kums
Rather than storing the object in the data base, specify
the location of the object (image) by creating a column
with VARCHAR. This kind of approach may be used in web
technologies. pl correct if I'm wrong.
| Is This Answer Correct ? | 1 Yes | 0 No |
Is Cursor exicutable ?
What can the Locate option of the Repair Utility accomplish?
What is bind in db2?
What is check constraint. Explain with example.
What if we try to insert the base table through updatable view , but failed to give a column value which is defined as NOT NULL.
What happens to a tablespace when its recovery infromation has been removed and a full recovery is no longer possible?
What is EXPLAIN?
When is the authorization check on DB2 objects done - at BIND time or run time?
What is the difference between CS and RR isolation levels?
What is a cursor?
what is a collection?
Q3. How will you fetch duplicate values from a DB2 table?