数据库语句

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 '%表名%'

猜你喜欢

转载自www.cnblogs.com/gc001279/p/9258276.html