aliyun / aliyun-odps-jdbc

JDBC Driver for ODPS
Other
125 stars 38 forks source link

[QUESTION]怎么获取分区表的分区字段及属性 #78

Closed zhengguilin closed 4 years ago

zhengguilin commented 4 years ago

A clear and concise description of what the problem is.

cornmonster commented 4 years ago
Connection conn = getConnection();
OdpsMetaData metadata = (OdpsMetaData) conn.getMetaData();
ResultSet rs = metadata.getColumns();

See https://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#getColumns(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)