本文主要是介绍oracle 得到表的字段和备注,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
--oracle 得到表的字段和备注
select lower(column_name),data_type,data_length,
(select t_s.comments from all_col_comments t_s where t_s.column_name=t.column_name and t_s.table_name='T_ZHZF_WS_DCXW_TZS' and t_s.owner='TEST') comments
from all_tab_columns t where
table_name =upper('T_ZHZF_WS_DCXW_TZS' )
and owner='TEST'
order by column_id
;
这篇关于oracle 得到表的字段和备注的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!