1

我想在 Oracle pl SQL 中运行一个查询,它会告诉我最近更新了哪些 SP。在 SQL Server 中是这样的:

select name, modify_date 
from sys.procedures 
order by modify_date desc
4

2 回答 2

2

查询dba_objects表:

SELECT object_name, last_ddl_time
FROM dba_objects
WHERE object_type = 'PROCEDURE'
ORDER BY last_ddl_time DESC
于 2012-08-21T12:20:32.797 回答
1

您是否尝试过此查询:

select *  from user_objects 
where object_type = 'PROCEDURE'
ORDER BY LAST_DDL_TIME DESC

您可能还想使用此表查看所有程序:all_objects

于 2012-08-21T12:22:22.163 回答