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

PLAN IS EXECUTABLE AND PACKAGE IS NOT EXECUTABLE . THEN WHAT IS THE USE OF PACKAGE?

2 Answers   Tech Mahindra, Wipro,


How to execute stored procedures?

0 Answers  


What if , we failed to mentioed null indicator in sql select query , that may retrieve null value ?

2 Answers   Cap Gemini,


How is a typical db2 batch pgm executed?

0 Answers  


How do I change the column size in db2?

0 Answers  






how to u check the query is executing or not ?where will u check for sqlcode ?

6 Answers   Infosys,


What are foreign keys in db2?

0 Answers  


What is the physical storage length of timestamp data type?

0 Answers  


What is meant by a unit of recovery?

1 Answers  


How do u achieve record level locking in DB2 versions when record level locking is not allowed?

2 Answers   IBM,


what is the process of precompiler?

2 Answers  


Can any one tell me about Restart logic in DB2.

2 Answers  


Categories