SELECTa.TABLE_NAME'테이블명',b.ORDINAL_POSITION'순번',b.COLUMN_NAME'필드명',b.DATA_TYPE'DATA TYPE',b.COLUMN_TYPE'데이터길이',b.COLUMN_KEY'KEY',b.IS_NULLABLE'NULL값여부',b.EXTRA'자동여부',b.COLUMN_DEFAULT'디폴트값',b.COLUMN_COMMENT'필드설명'FROMinformation_schema.TABLES aJOINinformation_schema.COLUMNS b ONa.TABLE_NAME=b.TABLE_NAMEANDa.TABLE_SCHEMA=b.TABLE_SCHEMAWHEREa.TABLE_SCHEMA='DB_NAME'ORDERBYa.TABLE_NAME,b.ORDINAL_POSITION