Note that this function is currently only supported on Oracle databases
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->getCommentSql('mytable','mycolumn'); print $s; /* * Prints: SELECT comments FROM USER_COL_COMMENTS WHERE TABLE_NAME='mytable' AND COLUMN_NAME='mycolumn' */