Oracle查詢使用者 表 注釋等操作

2022-07-18 00:51:14 字數 607 閱讀 5362

-- 獲取所有使用者資訊

select * from all_users;

-- 篩除系統使用者

select * from all_users where common = 'no';

-- 其他需求按條件查詢

-- 獲取所有表

select * from all_tables;

-- 獲取a使用者下的所有表資訊

select * from all_tables where owner = 'a';

--

-- 獲取當前使用者下所有表及注釋

select * from user_tab_comments;

-- 某個表的注釋

select * from user_tab_comments where table_name = 'aaaa';

-- 比user_tab_comments 多乙個owner列,同時也是查的所有使用者,所有表

select * from all_tab_comments;

持續更新記錄

oracle中查詢表注釋和字段注釋

查詢表注釋 select from user tab comments a where a.table name 查詢字段注釋 查詢字段詳細資訊 select from all tab columns a where a.table name 查詢字段注釋 select from user col ...

oracle查詢使用者表

oracle查詢使用者表空間 select from user all tables oracle查詢所有函式和儲存過程 select from user source oracle查詢所有使用者 select from all users.select from dba users oracle檢...

oracle資料庫查詢字段注釋等

1 給表加注釋 comment on table land.landsellmend is 補辦出讓 2 檢視表的comment select from user tab comments where table name landsellmend 3 給字段加注釋 comment on colum...