IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To specific column name from set of tables


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ajaybshukla

New User


Joined: 09 Sep 2008
Posts: 39
Location: india

PostPosted: Fri Mar 06, 2009 3:36 pm
Reply with quote

Hi,
I have 271 tables..i want to find one specific Column name from all these tables. Actually i want to know one specific column belongs to which table.

Can anybody help me out.

Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Mar 06, 2009 4:22 pm
Reply with quote

run a few queries on SYSIBM.SYSCOLUMNS and SYSIBM.SYSTABLES
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Fri Mar 06, 2009 4:26 pm
Reply with quote

Ajay,

This query can help you,
Code:
SELECT TBNAME,NAME,COLTYPE,LENGTH
FROM SYSIBM.SYSCOLUMNS           
WHERE NAME = 'yourcolumnname'                 


Thank You,
Sushanth Bobby
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
No new posts first column truncated in search result IBM Tools 13
No new posts Need to fetch data from so many DB2 t... DB2 9
Search our Forums:

Back to Top