首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

DB2惯用汇总

2012-07-03 
DB2常用汇总一、判断是否存在查看表select count(*) from syscat.tables where tabschemayourschema and

DB2常用汇总
一、判断是否存在

查看表select count(*) from syscat.tables where tabschema='yourschema' and tabname='yourtablename' and type='T'select tabname from syscat.tables  where tabname= 'your_table_name '查看索引select * from syscat.indexes where tabname = upper('tablename')查看外键select * from SYSCAT.REFERENCES where tabname = upper('tablename')查看触发器select * from SYSCAT.TRIGGERS where tabname = upper('tablename')

热点排行