String sql = "select table_name,table_comment,engine,table_rows,auto_increment from tables where table_schema='"
+ db + "' and table_name='" + tablename + "'";
List<CmsTable> tables = new ArrayList<CmsTable>();
SqlRowSet set = getJdbcTemplate().queryForRowSet(sql);
while (set.next()) {
CmsTable table = new CmsTable();
table.setName(set.getString(1));
table.setComment(set.getString(2).split(";")[0]);
table.setEngine(set.getString(3));
table.setRows(set.getInt(4));
table.setAuto_increment(set.getInt(5));
tables.add(table);
}
if (tables.size() > 0) {
return tables.get(0);
}else{