private static boolean isMySQL(Connection conn) throws Exception {
if (-1 == conn.getMetaData().getURL().toLowerCase().indexOf("mysql")) {
return false;
}
return true;
}
判断是否mysql数据库
最新推荐文章于 2021-02-12 07:58:06 发布
private static boolean isMySQL(Connection conn) throws Exception {
if (-1 == conn.getMetaData().getURL().toLowerCase().indexOf("mysql")) {
return false;
}
return true;
}