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

What is the purpose of using commit?

0 Answers  


is it compulsory commitment control in journal?

0 Answers   TCS,


can we view the access paths created by dbrm ? how ? thx

2 Answers   IBM,


What are the advantages of using a PACKAGE?

2 Answers  


What is consistency token in db2?

0 Answers  






can any one provide me the link for the db2 v7 & db2 v8 manual for Z/os? i need to know about the syntax of REORG in both versions & need to know the difference as well

0 Answers  


What is SPUFI?

4 Answers  


what is db2 restart?

0 Answers  


how to execute qcmdexc in rpgle?plz write code also?

1 Answers   IBM,


What is null in db2?

0 Answers  


what is the use of cursors?

3 Answers   iGate,


How to access db2 tables in mainframe?

0 Answers  


Categories