v5:reference:recordset:fieldtypesarray
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:reference:recordset:fieldtypesarray [2016/02/01 21:46] – [Description] mnewnham | v5:reference:recordset:fieldtypesarray [2021/05/05 03:31] (current) – mnewnham | ||
---|---|---|---|
Line 2: | Line 2: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
<WRAP right box> | <WRAP right box> | ||
+ | == See Also == | ||
+ | [[v5: | ||
+ | [[v5: | ||
== Syntax == | == Syntax == | ||
- | | + | |
</ | </ | ||
===== Description ===== | ===== Description ===== | ||
- | The method returns an array of [[v5: | + | The method returns an array of [[v5: |
+ | ------------------------------------- | ||
+ | ===== Example ===== | ||
+ | This example uses a postgres database so returns numerous Postgress specific fields | ||
+ | <code php> | ||
+ | |||
+ | $sql = " | ||
+ | |||
+ | $result = $db-> | ||
+ | |||
+ | print_r($resul-> | ||
+ | |||
+ | /* | ||
+ | * Returns | ||
+ | Array | ||
+ | ( | ||
+ | [0] => ADOFieldObject Object | ||
+ | ( | ||
+ | [name] => emp_no | ||
+ | [max_length] => 0 | ||
+ | [type] => 3 | ||
+ | [orgname] => emp_no | ||
+ | [table] => dept_emp | ||
+ | [orgtable] => dept_emp | ||
+ | [def] => | ||
+ | [db] => employees | ||
+ | [catalog] => def | ||
+ | [length] => 11 | ||
+ | [charsetnr] => 63 | ||
+ | [flags] => 53251 | ||
+ | [decimals] => 0 | ||
+ | [primary_key] => 2 | ||
+ | [not_null] => 1 | ||
+ | [auto_increment] => 0 | ||
+ | [binary] => 0 | ||
+ | [unsigned] => 0 | ||
+ | ) | ||
+ | |||
+ | [1] => ADOFieldObject Object | ||
+ | ( | ||
+ | [name] => dept_no | ||
+ | [max_length] => 4 | ||
+ | [type] => 254 | ||
+ | [orgname] => dept_no | ||
+ | [table] => dept_emp | ||
+ | [orgtable] => dept_emp | ||
+ | [def] => | ||
+ | [db] => employees | ||
+ | [catalog] => def | ||
+ | [length] => 16 | ||
+ | [charsetnr] => 255 | ||
+ | [flags] => 20491 | ||
+ | [decimals] => 0 | ||
+ | [primary_key] => 2 | ||
+ | [not_null] => 1 | ||
+ | [auto_increment] => 0 | ||
+ | [binary] => 0 | ||
+ | [unsigned] => 0 | ||
+ | ) | ||
+ | |||
+ | [2] => ADOFieldObject Object | ||
+ | ( | ||
+ | [name] => from_date | ||
+ | [max_length] => 10 | ||
+ | [type] => 10 | ||
+ | [orgname] => from_date | ||
+ | [table] => dept_emp | ||
+ | [orgtable] => dept_emp | ||
+ | [def] => | ||
+ | [db] => employees | ||
+ | [catalog] => def | ||
+ | [length] => 10 | ||
+ | [charsetnr] => 63 | ||
+ | [flags] => 4225 | ||
+ | [decimals] => 0 | ||
+ | [primary_key] => 0 | ||
+ | [not_null] => 1 | ||
+ | [auto_increment] => 0 | ||
+ | [binary] => 128 | ||
+ | [unsigned] => 0 | ||
+ | ) | ||
+ | ......etc. | ||
+ | */ | ||
+ | </ |
v5/reference/recordset/fieldtypesarray.1454359617.txt.gz · Last modified: 2017/04/21 11:37 (external edit)