获取Oracle数据库中字段信息

select t.DATA_PRECISION,t.DATA_SCALE,t.DATA_LENGTH,t.DATA_TYPE,t.COLUMN_NAME, t.NULLABLE,t.DATA_DEFAULT,c.COMMENTS
from all_tab_columns t left join all_col_comments c
on t.table_name = c.table_name and t.column_name = c.column_name
where t.table_name = 'TEST2'
order by t.COLUMN_ID

posted @ 2014-07-18 16:58  冷冰若水  阅读(236)  评论(0编辑  收藏  举报