Here is a sequence of queries I've made.
My tool just uses jdbc.
But to make sure I made the last query by Java code.
Code:
create database myschema;
create table myschema.mytable (id int);
alter table myschema.mytable comment = 'qwe';
select TABLE_COMMENT from information_schema.TABLES
where TABLES.TABLE_SCHEMA = 'myschema' and TABLES.TABLE_NAME = 'mytable';
The result is
Code:
qwe; InnoDB free: 8192 kB