Which DB2 catalog tables are used to produce a list of table column by table for all tables in a database?
1 6956How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause)
2 8989In SPUFI suppose you want to select maximum of 1000 rows, but the select returns only 200 rows. What are the 2 SQLCODEs that are returned?
1 10242
what is the sqlcode -501
On which levels locks can be applied?
What is db2 connect?
What is a db2 collection?
How to find the number of rows in db2 tables?
Comment whether dclgen is mandatorily used. If not, then what is the point of using it?
What is ibm db2 connect?
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 lock escalation in db2?
SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD CHAR, TOKEN KEY was expected
What is the advantage in De-normalizing tables in DB2?
What is db2 optimizer?
What is the physical storage length of timestamp data type?
What is dpf in db2?
Mention the various locks that are available in db2.