Page 1 of 1

Retrieving column comments

Posted: 01.10.2008, 10:06
by PhillHS
Is there a way of retrieving the column comments from a MySQL 5 database ?

Cheers.

Phill.

Posted: 01.10.2008, 11:04
by mdaems
select column_comment from information_schema.columns where ...;

I didn't test, but it may also be available in the Columns information you get using a TZMetadata component. (If so, I think it's the 12th column)

Mark

Posted: 03.10.2008, 17:25
by PhillHS
mdaems wrote:select column_comment from information_schema.columns where ...;
Cheers that seems to do what I need :)

Phill.