我在sybase中有一个代码,用于获取使用给定表的过程。
什么是等效的Oracle代码
use <<database>>
go
select so.type,so.name from sysobjects so, syscomments sc
where so.id=sc.id
and sc.text like '%<<tablename>>%'
and so.type='U'
答案 0 :(得分:1)
select owner, name, type, text
from all_source where text like lower('%<<tablename>>%');
TYPE
是oracle对象类型,如PACKAGE
,PROCEDURE
,FUNCTION
等。