Oracle的时间戳格式查询如下:
SELECT VALUE FROM NLS_SESSION_PARAMETERS WHERE PARAMETER = 'NLS_TIMESTAMP_FORMAT'.
Oracle查询建表时间:
SELECT CREATED FROM USER_OBJECTS WHERE OBJECT_NAME='TABLENAME';
新建序列(到时候改一下名字就行了):
-- Create sequence
create sequence SEQ_HEALTH_AGEDNESS
minvalue 1
maxvalue 999999999999999999999999999
start with 21
increment by 1
cache 20;
如果误删了数据可以用下边的语句查询一下:
select * from table_name AS OF TIMESTAMP to_timestamp('20170725 10:00:00','yyyymmdd hh24:mi:ss')
mark一下。
原文链接:https://www.f2er.com/oracle/209204.html