用DatabaseMetaData中的getTables()方法,getTables共有四个参数:
String catalog,
String schemaPattern,
String tableNamePattern,
String[] types
这四个参数我还没太搞懂含义,参考请教DatabaseMetaData.getTables方法中各参数的含义
使用此方法获得名为“test”数据库中所有表名,例
第一个参数修改为库名即可
用DatabaseMetaData中的getTables()方法,getTables共有四个参数:
String catalog,
String schemaPattern,
String tableNamePattern,
String[] types
这四个参数我还没太搞懂含义,参考请教DatabaseMetaData.getTables方法中各参数的含义
使用此方法获得名为“test”数据库中所有表名,例
第一个参数修改为库名即可