SELECT t1.COMMENTS as 中文名称,
t.colUMN_NAME as 字段名称,
t.DATA_TYPE as 类型,
t.data_precision as 长度,
t.data_scale as 精度,
t.nullable as 允许为空
FROM User_Tab_Cols t, User_Col_Comments t1
WHERE t.table_name = t1.table_name
AND t.column_name = t1.column_name
and t.table_name = 'table';
查询Oracle表结构和注释信息
最新推荐文章于 2024-03-27 02:07:09 发布