SELECT table_schema, table_name, row_format FROM information_schema.TABLES WHERE table_schema IN ('数据库名');
SELECT CONCAT( "ALTER TABLE", table_schema, ".", table_name, " ROW_FORMAT = Compact;" ) FROM information_schema.TABLES WHERE table_schema IN ( '数据库名' );