数据库操作

1、判断数据库表是否存在

 java.sql.Connection con = getYourConnection(); 

ResultSet rs = con.getMetaData().getTables(null, null, "yourTable", null );
if (rs.next()) {
//yourTable exist
}else {
//yourTable not exist
}

posted @ 2014-07-07 18:43  啊朋  阅读(135)  评论(0编辑  收藏  举报