v5:dictionary:setactualtype
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
v5:dictionary:setactualtype [2017/05/14 00:18] – created mnewnham | v5:dictionary:setactualtype [2017/07/22 18:39] (current) – mnewnham | ||
---|---|---|---|
Line 4: | Line 4: | ||
From ABOdb V5.21 | From ABOdb V5.21 | ||
== See Also == | == See Also == | ||
- | [[v5: | + | [[v5: |
[[v5: | [[v5: | ||
Line 16: | Line 16: | ||
</ | </ | ||
===== Description ===== | ===== Description ===== | ||
- | The method '' | + | The method '' |
If the method is used to create a new '' | If the method is used to create a new '' | ||
Line 22: | Line 22: | ||
A connection to a data dictionary object is required, but a database connection is not. | A connection to a data dictionary object is required, but a database connection is not. | ||
===== Usage ==== | ===== Usage ==== | ||
- | In this example we want to change the behavior of the mssqlnative driver, so that instead of the default '' | + | In this example we want to change the behavior of the mssqlnative driver, so that instead of the default '' |
<code php> | <code php> | ||
$db = newAdoConnection(' | $db = newAdoConnection(' | ||
Line 29: | Line 29: | ||
$dict-> | $dict-> | ||
</ | </ | ||
- | In the second example, we will create a new actual | + | In the second example, we will create a new **actual |
<code php> | <code php> | ||
- | $db = newAdoConnection(' | + | $db = newAdoConnection(' |
$dict = NewDataDictionary($db); | $dict = NewDataDictionary($db); | ||
Line 37: | Line 38: | ||
$dict-> | $dict-> | ||
- | ?> | + | /* |
+ | * Add 2 new columns to table | ||
+ | */ | ||
+ | $columns = ' | ||
+ | $sqlarray = $dict-> | ||
+ | |||
+ | print_r($sqlarray); | ||
+ | |||
+ | /* | ||
+ | * Prints | ||
+ | Array | ||
+ | ( | ||
+ | [0] => ALTER TABLE POSITION_TABLE ADD GEODATA_COL GEOMETRY | ||
+ | [1] => ALTER TABLE POSITION_TABLE ADD POINTDATA_COL POINT | ||
+ | ) | ||
+ | */ | ||
+ | |||
+ | </code> | ||
v5/dictionary/setactualtype.1494713892.txt.gz · Last modified: 2017/05/14 00:18 by mnewnham