Quote:
Originally posted by elline
Hello,
I have a database from some tables. Each of them has a primary key.
I have to write a query to get tables, which have primary keys as an answer.
Could anyone give some ideas how to do this?
Thanks for help,
Elline
|
one workaround idea that may help is to change DB2 diaglevel to 4, then use db2cc to list primary key of any table, then check db2diag.log and see the SQL used to list the primary keys, try to apply the same SQL on all tables using batch file
this donot need DB2 knowledge
donot forget to return yr diaglevel to normal ( 2 or 3 )
