I have some 3 particular fields ..i want to know which all
tables have those 3 fields. Is there any way to identify..
can we know by quering system tables..

Answer Posted / ratheesh nellikkal

select name ,tbname ,typeschema,source_tabname from
sysibm.syscolumns where name='coloumn name'

This statement will work.
You can try this command also.

select tabname,colname
from syscat.columns
where COLNAME='ID'
and tabschema='MYSCHEMA'

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe major components of db2?

642


What is the physical storage length of the data types date, time, and timestamp?

611


What's The Percentage Free Space ?

774


Comment whether the cursor is closed during commit or not.

676


What is a db2 cursor?

626






How to compare data between two tables in db2?

660


What is the syntax for seeing the columns and data types of a table in the db2 database?

578


what is utility for parm lib

1884


What is image copy in db2?

574


Explain what are the various isolation levels possible?

610


Mention the definition of cobol in varchar field.

700


What is with ur in db2?

760


Give the name of some fields form sqlca.

614


What is a storage group (stogroup)?

778


What is query_cache_limit?

545