Hi,
Luca gives some hints in http://lists.mysql.com/java/6522
Unfortunately, I didn't see any method of DatabaseMetaData that would help
with SHOW TABLE STATUS and if I do a plain
stmt = conn.createStatement();
rsThrowAway = stmt.executeQuery("show table
status;");
if (rsThrowAway.next()) {
returnString = rsThrowAway.getString(1);
log.debug("show table status: " +
returnString);}
else {
log.error("no response for show table
status" );
}
This getString(1) only returns the name of the very first table. Is there a
specific documentation on which row gets into which column for "show
status"?
The underlying purpose of this exercise is to find out in a cron-job which
tables are candidates for "optimize table" improvements.
Any hints would be highly appreciated!
Ralf