how to get the storage engine using jdbc

http://stackoverflow.com/questions/10885950/how-to-get-the-storage-engine-using-jdbc


Statement stmt = connection.createStatement();  
stmt
= connection.createStatement();
 ResultSet rs = stmt.executeQuery("select engine from information_schema.tables where table_name='" + tableName + "';");
rs
.next();
System.out.println(rs.getString(1));
 

posted @ 2012-11-13 22:44  规格严格-功夫到家  阅读(134)  评论(0编辑  收藏  举报