ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:dictionary:setcommentsql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v5:dictionary:setcommentsql [2016/01/13 02:06] – ↷ Page moved from dictionary:setcommentsql to v5:dictionary:setcommentsql mnewnhamv5:dictionary:setcommentsql [2021/03/03 13:42] (current) – typo in example peterdd
Line 11: Line 11:
 ===== Description ===== ===== Description =====
 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.  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. 
 +
 +Note that this function is currently only supported on Oracle databases
 ---------------------------------- ----------------------------------
 ===== Usage ===== ===== Usage =====
Line 18: Line 20:
 */ */
 $dict = newDataDictionary($db); $dict = newDataDictionary($db);
-$s = $dict->setColumnSql('mytable','mycolumn','This is a comment');+$s = $dict->setCommentSql('mytable', 'mycolumn', 'This is a comment');
 print $s; print $s;
 /* /*
v5/dictionary/setcommentsql.1452647176.txt.gz · Last modified: 2017/04/21 11:27 (external edit)