Search code examples
db2mainframetoaddb2-connect

How to know which all tables have the column ex PHONE?


Please advise.

In Db2 database how can I know the list of tables that contain the column ex PHONE?

Thanks, Srihari


Solution

  • Have you tried looking at the system catalog?

       SELECT CREATOR, TBNAME
       FROM   SYSIBM.SYSCOLUMNS
       WHERE  NAME = 'PHONE'