("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' from information_schema.tables where table_schema='skyp' and TABLE_NAME like 'sk%' ");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间',table_rows'数量' from information_schema.tables where table_schema='skyp' and TABLE_NAME like 'sk%' ORDER BY CREATE_TIME DESC");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' from information_schema.tables where table_schema='skyp' and TABLE_NAME like 'ksh%' ");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' ,table_rows'数量' from information_schema.tables where table_schema='skyp' and TABLE_NAME like 'ksh%' ORDER BY CREATE_TIME DESC ");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' from information_schema.tables where table_schema='skyp' and (TABLE_NAME not like 'sk%' and TABLE_NAME not like 'ksh%') ");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' ,table_rows'数量' from information_schema.tables where table_schema='skyp' and (TABLE_NAME not like 'sk%' and TABLE_NAME not like 'ksh%') ORDER BY CREATE_TIME DESC ");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' from information_schema.tables where table_schema='skyp' and TABLE_NAME like '%"+table+"%' and TABLE_NAME like 'sk%' ");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间',table_rows'数量' from information_schema.tables where table_schema='skyp' and TABLE_NAME like '%"+table+"%' and TABLE_NAME like 'sk%' ORDER BY CREATE_TIME DESC");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' from information_schema.tables where table_schema='skyp' and TABLE_NAME like '%"+table+"%'and TABLE_NAME like 'ksh%' ");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间',table_rows'数量' from information_schema.tables where table_schema='skyp' and TABLE_NAME like '%"+table+"%'and TABLE_NAME like 'ksh%' ORDER BY CREATE_TIME DESC");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' from information_schema.tables where table_schema='skyp' and TABLE_NAME like '%"+table+"%'and (TABLE_NAME not like 'sk%' and TABLE_NAME not like 'ksh%') ");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间',table_rows'数量' from information_schema.tables where table_schema='skyp' and TABLE_NAME like '%"+table+"%'and (TABLE_NAME not like 'sk%' and TABLE_NAME not like 'ksh%' ORDER BY CREATE_TIME DESC) ");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' from information_schema.tables where table_schema='skyp' ");//limit " + page + ","+pageSize+"
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间',table_rows'数量' from information_schema.tables where table_schema='skyp' ORDER BY CREATE_TIME DESC ");//limit " + page + ","+pageSize+"
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' from information_schema.tables where table_schema='skyp' and TABLE_NAME like '%"+table+"%'");
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间',table_rows'数量' from information_schema.tables where table_schema='skyp' and TABLE_NAME like '%"+table+"%' ORDER BY CREATE_TIME DESC");
}
}
// ("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' from information_schema.tables where table_schema='skyp' and TABLE_NAME like '%"+table+"%' and (TABLE_NAME like 'sk%' or TABLE_NAME like 'ksh%')");
/* if (StringUtil.isEmpty(table)){
//查询所有的
rs = stmt.executeQuery
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' from information_schema.tables where table_schema='skyp' ");//limit " + page + ","+pageSize+"
}else {
// 模糊查询
rs = stmt.executeQuery
("select TABLE_NAME '表名称',table_comment '表说明',CREATE_TIME '创建时间' from information_schema.tables where table_schema='skyp' and TABLE_NAME like '%"+table+"%' and (TABLE_NAME like 'sk%' or TABLE_NAME like 'ksh%')");
}*/
// sk 、 ksh 、xz 三种类型
while(rs.next())
while(rs.next())
{
{
Map<Object,Object>map=newHashMap<>();
Map<Object,Object>map=newHashMap<>();
map.put("TABLE_NAME",rs.getString("表名称"));
map.put("TABLE_NAME",rs.getString("表名称"));
map.put("TABLE_COMMENT",rs.getString("表说明"));
map.put("TABLE_COMMENT",rs.getString("表说明"));
map.put("CREATE_TIME",rs.getString("创建时间"));
map.put("CREATE_TIME",rs.getString("创建时间"));
map.put("TABLE_ROWS",rs.getString("数量"));
database.add(map);
database.add(map);
}
}
inttotal=database.size();
inttotal=database.size();
...
@@ -174,16 +154,6 @@ public class DatabaseController {
...
@@ -174,16 +154,6 @@ public class DatabaseController {
map.put("xz",xz);
map.put("xz",xz);
rs.last();
rs.last();
}
}
/* while (rs.next())
{
int ksh = rs.getInt("count");
map.put("sk",ksh);
map.put("ksh",);
map.put("xz",);
}*/
}
}
catch(Exceptione)
catch(Exceptione)
{
{
...
@@ -205,21 +175,12 @@ public class DatabaseController {
...
@@ -205,21 +175,12 @@ public class DatabaseController {