If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Views List for a table ??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-16-09, 14:26
DB2new DB2new is offline
Registered User
 
Join Date: Mar 2009
Posts: 5
Views List for a table ??

Hello Everybody,

I need to retrieve the list of views associated with a table 'einfo'

I could not figure out how can I use syscat.tables and syscat.views.


Please help,

DB2new
Reply With Quote
  #2 (permalink)  
Old 03-16-09, 16:40
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Try syscat.tabdep

Andy
Reply With Quote
  #3 (permalink)  
Old 03-17-09, 00:33
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
Select VIEWNAME from syscat.tabdep where BNAME = 'einfo' and BSCHEMA = Schema name for einfo
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On