oralce一些系統表整理

2021-06-22 08:57:25 字數 738 閱讀 9460

--檢視使用者下所有的表

select * from user_tables;

--檢視使用者下所有的表的列屬性

select * from user_tab_columns where table_name=upper(':table_name');

--檢視某錶的建立時間

select object_name,created from user_objects where object_name=upper(':table_name');

--檢視某錶的大小

select sum(bytes)/(1024*1024) as "size(m)" from user_segments where segment_name=upper(':table_name');

--檢視所有檢視名稱及建立檢視的select語句

select view_name,text from user_views;

--檢視函式和過程等的源**

select * from user_source

--檢視表注釋

select * from user_tab_comments where table_name=upper(':table_name');

--檢視表的字段的注釋

select * from user_col_comments where table_name=upper(':table_name');

oralce一些系統表

檢視使用者下所有的表 select from user tables 檢視使用者下所有的表的列屬性 select from user tab columns where table name upper table name 檢視某錶的建立時間 select object name,created ...

整理的一些常用系統表

名稱 位址 說明 sysaltfiles 主 儲存資料庫的檔案 syscharsets 主資料庫 字符集與排序順序 sysconfigures 主資料庫 配置選項 syscurconfigs 主資料庫 當前配置選項 sysdatabases 主資料庫 伺服器中的資料庫 syslanguages 主資...

整理的一些常用系統表

名稱 位址 說明 1sysaltfiles 主資料庫 儲存資料庫的檔案 2syscharsets 主資料庫 字符集與排序順序 3sysconfigures 主資料庫 配置選項 4syscurconfigs 主資料庫 當前配置選項 5sysdatabases 主資料庫 伺服器中的資料庫 6syslan...