主题 : 备份功能出错了 |
级别: 举人
|
1# 发表于:2012-12-01 00:26:56 IP:119.131.*.*
|
||||
---|---|---|---|---|---|
级别: 状元
|
2# 发表于:2012-12-01 08:45:27 IP:115.214.*.*
你是不是改了数据库?或使用的是以前的数据库? Unknown table 'table_names' in information_schema
? |
||
---|---|---|---|
级别: 童生
|
4# 发表于:2013-01-27 20:01:36 IP:125.9.*.*
奇怪了 换成这样就可以通过
public List<String> listTables() { String sql = " SELECT TABLE_NAME FROM information_schema.`TABLES` where TABLE_SCHEMA ='jeecms'"; List<String> tables = new ArrayList<String>(); SqlRowSet set = getJdbcTemplate().queryForRowSet(sql); while (set.next()) { tables.add(set.getString(1)); } return tables; } |
||
---|---|---|---|
1
共1页