开发中用存储过程的朋友可能会用到:
ORACLE数据库的SQL如下:
SELECT * FROM ALL_SOURCE t WHERE t.TYPE = 'PACKAGE BODY' AND t.TEXT LIKE '%TableName%';
MSSQL数据库的SQL如下:
SELECT DISTINCT object_name(id) FROM syscomments WHERE id IN
(SELECT object_id FROM sys.objects WHERE type ='P') AND text LIKE '%TableName%'