v5:reference:recordset:fetchfield
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
reference:fetchfield [2015/08/12 02:25] – [Table] mnewnham | v5:reference:recordset:fetchfield [2021/05/05 03:42] (current) – mnewnham | ||
---|---|---|---|
Line 2: | Line 2: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
<WRAP right box> | <WRAP right box> | ||
+ | == See Also == | ||
+ | [[v5: | ||
+ | |||
== Syntax == | == Syntax == | ||
- | | + | |
optional integer $fieldNumber | optional integer $fieldNumber | ||
} | } | ||
Line 9: | Line 12: | ||
===== Description ===== | ===== Description ===== | ||
fetchField() returns __database specific__ information about n< | fetchField() returns __database specific__ information about n< | ||
+ | |||
+ | If the recordset is available and the offset provided is in range, then an **ADOFieldObject** object is returned, otherwise the method returns **false**. | ||
+ | |||
**It is important to note that the information contained in the object returned varies from database to database.** There is a common set of fields returned, but the values vary from database to database for the same data type. Check the guide for each driver to see any extra information provided. | **It is important to note that the information contained in the object returned varies from database to database.** There is a common set of fields returned, but the values vary from database to database for the same data type. Check the guide for each driver to see any extra information provided. | ||
Line 38: | Line 44: | ||
===== Explanation Of Common Fields ==== | ===== Explanation Of Common Fields ==== | ||
There are 3 common columns provided | There are 3 common columns provided | ||
- | ^ Name ^ Description | + | ^ Name ^ Description |
- | | NAME | The column name | + | | NAME | The column name | Casing of the column name is controlled by the [[v5:reference:adodb_assoc_case]] constant. |
- | | MAX_LENGTH | + | | MAX_LENGTH |
- | | TYPE | This is the database | + | | TYPE | This is the database |
v5/reference/recordset/fetchfield.txt · Last modified: 2021/05/05 03:42 by mnewnham