1.很多时候我们需要从数据库中获取指定表的所有列的相关属性,如 name,commens,datatype,datalength,pk等.下面就是制定的语句. select c.TABLE_NAME TABLE_CODE, t.comments TABLE_NAME, C.COLUMN_NAME COL_CODE, c2.comments COL_NAME, c.DATA_TYPE COL_TYPE, decode(c.NULLABLE,') NULLABLE, c.DATA_LENGTH, c…