- 查询的结果依次为表名,字段名,字段类型,字段长度,默认值
?
select col.TABLE_NAME,col.COLUMN_NAME,col.DATA_TYPE,col.DATA_LENGTH,col.DATA_DEFAULT, com.comments from user_tab_columns col
inner join user_col_comments com
on col.TABLE_NAME='your table name' and?
col.TABLE_NAME=com.TABLE_NAME and
col.COLUMN_NAME=com.COLUMN_NAME
order by col.COLUMN_ID
?
2.查询表名
?
select TABLE_NAME from tabs? where Table_Name='your table name'