Sybase:使用特定表获取存储过程列表

Rav*_*avi 11 sybase stored-procedures

我在Sybase数据库中有500个存储过程.使用SQL,我可以获取使用特定表的所有存储过程的列表tbl_books吗?

Geo*_*tas 25

使用这样的东西:

Select distinct sysobjects.name
, case 
 when sysobjects.type = 'TR' then 'TRIGGER' 
 when sysobjects.type = 'P' then 'PROCEDURE' 
 when sysobjects.type = 'V' then 'VIEW' 
 else 'UNKNOWN' end type
from sysobjects inner join syscomments
on sysobjects.id = syscomments.id
where syscomments.text like '%tbl_books%'
Run Code Online (Sandbox Code Playgroud)