retrieve all table names from DB2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • suchismita sen
    New Member
    • Mar 2009
    • 1

    #1

    retrieve all table names from DB2

    hi..

    i want to dynamically retrieve all the table names from DB2. can anyone suggest me a procedure to do that. or is there any sample code available..??
  • cburnett
    New Member
    • Aug 2007
    • 57

    #2
    Retrieving tables

    Something like this is what you are after:
    Code:
    select rtrim(T.tabschema)||'.'||rtrim(T.tabname) as table_name
      from syscat.tables T 
      with ur

    Comment

    Working...