日期:2014-05-16  浏览次数:20457 次

判断是否mysql数据库
private static boolean isMySQL(Connection conn) throws Exception {
if (-1 == conn.getMetaData().getURL().toLowerCase().indexOf("mysql")) {
    return false;
}
    return true;
}