Hi Agrias,
no, there's no way to keep any comment/formatting within the table DDL.
The output of a SHOW TABLE is not retrieved from any system table, it's created ad-hoc by the parser.
There is the RequestText column in dbc.tvm which holds the source code of the *latest* query modifying the table structure, i.e. when you do a CREATE INDEX/ALTER TABLE, the original CREATE TABLE text (including the comments) is overwritten.
Dieter
↧