v5:dictionary:getcommentsql
This is an old revision of the document!
getCommentSql
Syntax
string getCommentSql( string $tableName, string $columnName )
Description
The method getCommentSql()
returns a string containing the SQL necessary to read the column comments from a table, if the database supports it.
Note that this function is currently only supported on Oracle databases
Usage
/* * 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' */
Notes
- Support for this method is limited
- Special rights may be required to execute the returned SQL
- If not supported, the method returns false
v5/dictionary/getcommentsql.1500739664.txt.gz · Last modified: 2017/07/22 18:07 by mnewnham