string getCommentSql( string $tableName, string $columnName )
The method getCommentSql()
returns a string containing the SQL necessary to read the column comments from a table, if the database supports it.
/* * On an Oracle Database */ $dict = newDataDictionary($db); $s = $dict->getColumnSql('mytable','mycolumn'); print $s; /* * Prints: select comments from USER_COL_COMMENTS where TABLE_NAME='mytable' and COLUMN_NAME='mycolumn' */