how to get all table names from db2 database schema

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • noorg
    New Member
    • Aug 2010
    • 1

    how to get all table names from db2 database schema

    hi all can you tell me the db2 query for how to get all table names from db2 database schema
  • db2sma
    New Member
    • Apr 2010
    • 3

    #2
    Syscat table

    Select varchar(tabname ,40) from syscat.tables

    Comment

    • Sidhartha

      #3
      db2 list tables for schema <schema name>
      or db2 list tables for all

      Comment

      • Aniket sonmale
        New Member
        • Jan 2011
        • 7

        #4
        db2 list tables

        Comment

        • pramodds
          New Member
          • Feb 2011
          • 7

          #5
          As said before,u can use this
          db2 list tables for schema <schema name>
          or
          query syscat tables.
          db2 "select tabname from syscat.tables where tabschem='<sche maname>'"

          Comment

          Working...