Check the stored procedure according to the content

1. The following is written in Oracle to find a stored procedure by name:  select * from user_objects       where Object_Type='PROCEDURE' and object_name like '%'||upper('p')||'%'  Find a stored procedure by content:  SELECT * FROM ALL_SOURCE where TYPE='PROCEDURE' AND TEXT LIKE '%'||upper('clean_')||'%'  SELECT * FROM ALL_SOURCE where TYPE='PACKAGE BODY' AND TEXT LIKE '%function%'and owner=' system' and name  = tablename';bit  slow, MS has no  good method .dbo.syscomments a,kbmp.dbo.sysobjects b  where a.id=b.id and b.xtype='p' and a.text like '%if_check%'; 











 







Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326223542&siteId=291194637