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

Where can you declare a cursor in a cobol-db2 program?

1 Answers  


What types of tables are there in the db2 database?

1 Answers  


How do you concatenate the firstname and lastname from emp table to give a complete name?

1 Answers  


What is a subselect? Is it different from a nested select?

1 Answers  


I have a table which has thousand of records i want to fetch only record num 100 to record num 200. Write a query that satisfies this criteria.(Cant use any keys) Anyone please reply ASAP!

17 Answers   KNIT, Tech Mahindra,


What is error -818 in db2. where can you find the timestamp of the DBRM and the source code.( precompile puts the timestamp on dbrm and source code correct?)

2 Answers  


Define data page.

1 Answers  


What is load utility in db2?

1 Answers  


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

4 Answers   IBM,


What is a dbrm in db2?

1 Answers  


What are the prerogatives?

1 Answers  


List down the data types in the db2 database.

1 Answers  


Categories