What are simple, segmented and partitioned table spaces ?
Answer Posted / s
Simple tablespaces stores the rows for all the tables and
they are interleaved with one another.
Segmented tablespaces, tables are stored in equal sized
segments and a segment contains rows from one table.
Partitioned tablespace, only one table can be defined and
rows are spread across partitions.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is the use of reorg in db2?
can all users have the privilage to use the sql statement select * (dml)?
Explain about rct in db2?
Explain in brief how does db2 determine what lock-size to use?
What are the contents of a dclmgen?
Where do you specify them?
What is a system catalog table in db2?
What is check constraint in db2?
SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.
What is db2?
Why do we bind in db2?
What is dbrm? What it contains? When it will be created?
What is a storage group (stogroup)?
Why do chiropractors use drop table?
What is cascading rollback?