How to get table name from column in DB2?

AAA_king picture AAA_king · Sep 1, 2011 · Viewed 51.8k times · Source

I need the db2 sql query to find the table/tables from column name. I have the column name but don't have table name which this column belongs to.

Answer

boes picture boes · Sep 1, 2011
select TBNAME
    from sysibm.syscolumns
    where NAME = '<column name>'