oracle查詢表字段和註釋

select ut.COLUMN_NAME,--字段名稱 uc.comments,--字段註釋 ut.DATA_TYPE,--字典類型 ut.DATA_LENGTH,--字典長度 ut.NULLABLE--是否爲空 from user_tab_columns ut inner JOIN user_col_comments uc on ut.TABLE_NAME = uc.table_name and ut.COLUMN_NAME = uc.column_name where ut.Table_Name='B_EVAL_GRADE' order by ut.column_name Table_Name= 的表名需要大寫。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章