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

How to find the parent table name using child table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nareshreddy.j
Currently Banned

New User


Joined: 06 Mar 2007
Posts: 3
Location: bangalore

PostPosted: Wed Mar 14, 2007 4:22 pm
Reply with quote

i created child table referenced to parent table.i forgot the parent table name but i know child table name.can any one help me how to find parent table name? [/b]
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Wed Mar 14, 2007 6:21 pm
Reply with quote

Hi

You can find the parent table name in SYSIBM.SYSRELS table.


Select REFTBNAME from SYSIBM.SYSRELS WHERE TBNAME = 'Child Table Name';


Sai
Back to top
View user's profile Send private message
vini_srcna

Active User


Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark

PostPosted: Wed Mar 14, 2007 9:14 pm
Reply with quote

if you have really created the Child table then you can see it in the DDL also. icon_razz.gif
Back to top
View user's profile Send private message
nareshreddy.j
Currently Banned

New User


Joined: 06 Mar 2007
Posts: 3
Location: bangalore

PostPosted: Thu Mar 15, 2007 3:37 pm
Reply with quote

thank you for ur suggession.
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 Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top