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 |
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?
How to connect to db2 database from windows command line?
What does this mean ? GRANT BIND,EXECUTE ON PLAN MK2 TO PUBLIC;
What is performance tuning db2?
In cobol+DB2program if the code of cobol program has changed than i have to do precompilation once again?
How do I add a column to an existing table in db2?
What is the difference between db2 and oracle?
If the base table underlying a view is restructured, eg. attributes are added, does the application code accessing the view need to be redone?
what is Runstats? Whem will u choose to runatats?
What is a data page?
what is difference between Plan and Package
Can we install 2 different versions of Db2 on same mainframe?