Oracle不經常使用SQL

Oracle 查詢最近建立的表html

select * from user_objects where object_type='TABLE' order by created desc

Oracle 查詢最近刪除的表數據庫

select * from dba_recyclebin s where type='TABLE' and OWNER='WCECDB' order by droptime desc    //WCECDB查詢的數據庫

Oracle 查詢最近修改的表post

select uat.table_name,(select last_ddl_time from user_objects where object_name = uat.table_name) as lastddltime from user_all_tables uat
order by lastddltime desc

推薦地址:url

 Oracle根據主鍵獲取對應表,Oracle根據外鍵獲取相關表spa

Oracle 查詢當前數據庫環境變量code

select userenv('language') nls_lang from dual;  1.右擊"個人電腦" - "屬性" - "高級" - "環境變量" - "系統環境變量": 2.點擊"新建", 變量名設置爲"NLS_LANG", 變量值設置爲"AMERICAN_AMERICA.ZHS16GBK", 點擊"肯定";   (數據庫字段集)
相關文章
相關標籤/搜索