柚子快報激活碼778899分享:ORACLE ALL表
柚子快報激活碼778899分享:ORACLE ALL表
1. 表獲取
對于獲取表信息,可供選擇的表有:
??? all_tables:所有用戶的表 ??? dba_tables:所有用戶表+系統(tǒng)表 ??? user_tables:當(dāng)前用戶的表 ??? all_objects:所有表+索引+序列等
select * from user_tables; //當(dāng)前用戶的表???? ?
select * from all_tables; //所有用戶的表 ?
select * from dba_tables; //包括系統(tǒng)表
select * from dba_tables where owner='test'
??? 1 ??? 2 ??? 3 ??? 4 ??? 5 ??? 6 ??? 7
2. 表字段獲取
對于獲取表字段信息,可供選擇的表有:
??? all_tab_columns:所有用戶的表字段 ??? dba_tab_columns:所有用戶表字段+系統(tǒng)表字段 ??? user_tab_columns:當(dāng)前用戶的表字段
select * from user_tab_columns where Table_Name='用戶表';
select * from all_tab_columns where Table_Name='用戶表';
select * from dba_tab_columns where Table_Name='用戶表';
??? 1 ??? 2 ??? 3 ??? 4 ??? 5
3. 表注釋獲取
對于獲取表注釋信息,可供選擇的表有:
??? all_tab_comments:所有用戶的表注釋 ??? dba_tab_comments:所有用戶表注釋+系統(tǒng)表注釋 ??? user_tab_comments:當(dāng)前用戶的表注釋
select * from all_tab_comments;
select * from dba_tab_comments;
select * from user_tab_comments;
??? 1 ??? 2 ??? 3 ??? 4 ??? 5
4. 表字段注釋獲取
對于獲取表字段注釋信息,可供選擇的表有:
??? all_col_comments:所有用戶的表字段注釋 ??? dba_col_comments:所有用戶表字段注釋+系統(tǒng)表字段注釋 ??? user_col_comments:當(dāng)前用戶的表字段注釋
select * from all_col_comments;
select * from dba_col_comments;
select * from user_col_comments; ————————————————
??????????????????????????? 版權(quán)聲明:本文為博主原創(chuàng)文章,遵循 CC 4.0 BY-SA 版權(quán)協(xié)議,轉(zhuǎn)載請附上原文出處鏈接和本聲明。 ?????????????????????? ? 原文鏈接:https://blog.csdn.net/u010587546/article/details/114023757
柚子快報激活碼778899分享:ORACLE ALL表
參考閱讀
本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點和立場。
轉(zhuǎn)載請注明,如有侵權(quán),聯(lián)系刪除。