使用背景:领导让查询一张表的数据是什么时候插入进去的,使用的是存储过程,能力有限,没有找到什么时候触发的存储过程,直接看操作的表,表中还没有操作时间的字段,就想有没有这样一种方式,直接查询在什么时候操作的这张表;
select object_name,created “创建时间”,last_ddl_time “最后修改时间”
from user_objects where object_name = ‘你的表名’
或者
select LAST_DDL_TIME from user_objects where object_type=‘TABLE’ and object_name=‘你的表名’