懒龙谷
  • Home
  • Categories
  • Tags
  • Archives

db2_特殊查询

db2 特殊查询

  1. 查询库中所有表

    db2 " select * from sysibm.systables "
    db2 list tables for schema  cmb
    
  2. 查询表结构(字段数和名)

    db2 describe table xxxx
    
  3. 查询表索引

    db2 describe indexes for table show detail
    
  4. 有些平台有的

    showindex.sh tablename
    

this guy is lazy, nothing leave

Comments
comments powered by Disqus

  • « DB2_sqlcode
  • 参数处理 »

Published

May 15, 2014

Category

db2

Stay in Touch

  • Powered by Pelican. Theme: Elegant by Talha Mansoor