数据库语句

1、查询某个表被哪些存储过程调用

      sql:

  select distinct object_name(id) from syscomments where id in(select id from sysobjects where type ='P') and text like '%表名%'

   oracle:

  select distinct name from USER_SOURCE where type = 'PROCEDURE' and text like '%表名%'

posted @ 2018-07-03 14:04  竹林逸雪  阅读(137)  评论(0编辑  收藏  举报