v5:dictionary:altercolumnsql
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dictionary:altercolumnsql [2015/08/29 16:38] – created mnewnham | v5:dictionary:altercolumnsql [2016/01/13 02:06] (current) – ↷ Links adapted because of a move operation mnewnham | ||
---|---|---|---|
Line 6: | Line 6: | ||
<WRAP right box> | <WRAP right box> | ||
== See Also == | == See Also == | ||
- | [[dictionary: | + | [[v5:dictionary: |
== Syntax == | == Syntax == | ||
array alterColumnSql( | array alterColumnSql( | ||
Line 19: | Line 19: | ||
The method '' | The method '' | ||
- | The information specified in the '' | + | The information specified in the '' |
===== Limitations ==== | ===== Limitations ==== | ||
Line 35: | Line 35: | ||
* Attempting to switch the metaType of a field from say '' | * Attempting to switch the metaType of a field from say '' | ||
- | In order to actually modify the column, the returned array must be passed to the [[dictionary: | + | In order to actually modify the column, the returned array must be passed to the [[v5:dictionary:executesqlarray|executeSqlArray()]] method. |
===== Usage ===== | ===== Usage ===== | ||
<code php> | <code php> | ||
+ | /* | ||
+ | * create a data dictionary object, using this connection | ||
+ | */ | ||
+ | $dict = NewDataDictionary($db); | ||
+ | |||
+ | |||
+ | $table = ' | ||
+ | $flds = 'col6 C(50)'; | ||
+ | |||
+ | $sql = $dict-> | ||
+ | /* | ||
+ | * Sql looks like: | ||
+ | | ||
+ | */ | ||
+ | |||
+ | /* | ||
+ | * Complete the process by executing the statement | ||
+ | */ | ||
+ | $db-> | ||
+ | $dict-> | ||
+ | $db-> | ||
</ | </ | ||
v5/dictionary/altercolumnsql.1440859095.txt.gz · Last modified: 2017/04/21 11:29 (external edit)