Consider that a package is bound into 2 different
collections and the PKLIST option specifies both the
collections. If the collection id is not specified in the
program while executing the SQL query, then when the DB2
system will search the package list, which collection will
it pick up or will it give an error/abend?
Answer / mani
Generally when the search is done the order in which the
collection id is specified in the list would be taken for
priority.
You can use the special register CURRENT PACKAGE PATH or
CURRENT PACKAGESET (if CURRENT PACKAGE PATH is not set) to
specify the collections that are to be used for package
resolution.
The CURRENT PACKAGESET special register contains the name of
a single collection, and the CURRENT PACKAGE PATH special
register contains a list of collection names.
| Is This Answer Correct ? | 3 Yes | 0 No |
Update command
Suppose there are many duplicate records in a Db2 table. What is the query to retrive only duplicate records?
Mention some fields that are a part of sqlca.
What is nvl in db2?
What is Call attach facility? How does it work?
On which levels locks can be applied?
Give the name of some fields form sqlca.
Give a brief description of db2 isolation levels?
What are the contents of a DCLGEN?
What is dbrm?
What is the syntax for creating a table in the db2 database?
How do I delete a table in database?