我想在Oracle pl SQL中运行一个查询,告诉我最近更新了哪些SP。在SQL Server中,它将是:
select name, modify_date
from sys.procedures
order by modify_date desc
答案 0 :(得分:2)
查询dba_objects
表:
SELECT object_name, last_ddl_time
FROM dba_objects
WHERE object_type = 'PROCEDURE'
ORDER BY last_ddl_time DESC
答案 1 :(得分:1)
您是否尝试过此查询:
select * from user_objects
where object_type = 'PROCEDURE'
ORDER BY LAST_DDL_TIME DESC
您可能还想使用此表查看所有程序:all_objects