drop table aa_tab;
create table aa_tab as
select A.TABLE_NAME 表名, A.column_name 字段名,A.data_type 数据类型,A.data_length 长度,A.data_precision
整数位, A.Data_Scale 小数位,A.nullable 允许空值,to_lob(A.Data_default) 缺省值,
B.comments
备注 from user_tab_columns A,user_col_comments B
where a.COLUMN_NAME=b.column_name and A.Table_Name = B.Table_Name and A.Table_Name like 'FH%'
select a.* ,to_char(a.缺省值),a.数据类型 + '(' + ')'from aa_tab a