3 DB2表及sp管理 3.1 看存储过程文本 select text from syscat.procedures where procname='PROC1'; 3.2 看表结构 describe table syscat.procedures describe select * from syscat.procedures
3.3 查看各表对sp的影响(被哪些sp使用) select PROCNAME from SYSCAT.PROCEDURES where SPECIFICNAME in(select dname from sysibm.sysdependencies where bname in ( select PKGNAME from syscat.packagedep where bname='TB_BRANCH'))