string setCommentSql( string $tableName, string $columnName, string $comment )
The method setCommentSql()
returns a string containing the SQL necessary to set the column comments on a table to the specified value, if the database supports it.
/* * On an Oracle Database */ $dict = newDataDictionary($db); $s = $dict->setColumnSql('mytable','mycolumn','This is a comment'); print $s; /* * Prints: COMMENT ON COLUMN mytable.mycolumn IS 'This is a comment'; */