Link to home
Start Free TrialLog in
Avatar of sam2929
sam2929

asked on

finding tables

Hi,
I have column textcode in many tables I want to find which tables have that column how can i do that.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
On DB2 for i, this works for me:

select table_name,
       column_name
  from qsys2.syscolumns
 where column_name = 'SOMECOL'

Open in new window


HTH,
DaveSlash