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
获取Oracle数据库中字段信息
时间: 2024-10-06 01:15:11