When would you prefer to use VARCHAR?

Answers were Sorted based on User's Feedback



When would you prefer to use VARCHAR?..

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

When would you prefer to use VARCHAR?..

Answer / sunil1405

when u declare a column with 10 bytes and only the field is
using 6bytes of storage , the balance 4 bytes will be
reclaimed ie its not wasted.

Is This Answer Correct ?    6 Yes 2 No

When would you prefer to use VARCHAR?..

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

Post New Answer

More DB2 Interview Questions

While creating a table, by mistake you have given size of one field as 10. But as per requirement size should be 8. What is your next step?

4 Answers   CTS, IBM,


What are catalog tables in db2?

0 Answers  


how to resolve -818 error. how to see timestamp token in load module and plan

4 Answers   IBM,


assume ther are 5000 records in a database and want to fetch using cursor. cursor fetches only 3000 records and fetch is not happening for remaining 2000 records. why it happens and how to rectify it

1 Answers   TCS,


what is Static and dynamic linking

1 Answers   Virtusa,






What is copy pending and check pending in db2?

0 Answers  


What is db2 instance?

0 Answers  


Can we install 2 different versions of Db2 on same mainframe?

3 Answers  


How do I add a column to an existing table in db2?

0 Answers  


How do I delete a table in database?

0 Answers  


wt is view ? wht r the restrictions for view ?

3 Answers   Verizon,


What is correlation names?

1 Answers  


Categories