1. 程式人生 > >oracle資料庫查詢某個表的欄位資訊

oracle資料庫查詢某個表的欄位資訊

(1)查詢整個資料庫所有表的欄位

select t.column_name from user_col_comments t;(一般建議去執行,因為資料庫表過多執行起來會非常的慢)

(2)查詢特定表名的表字段

select t.column_name, t.column_name  from user_col_comments t where t.table_name = '所要查詢欄位的表名';

(3)查詢資料庫所有的表名

select t.table_name from user_tables t;