v5:userguide:learn_dictionary:metatypes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:userguide:learn_dictionary:metatypes [2016/03/16 01:49] – [Table] mnewnham | v5:userguide:learn_dictionary:metatypes [2016/03/17 00:08] (current) – [Using MetaTypes] mnewnham | ||
---|---|---|---|
Line 19: | Line 19: | ||
| N | Numeric field. Includes autoincrement, | | N | Numeric field. Includes autoincrement, | ||
| R | Serial field. Includes serial, autoincrement integers. This works for selected databases. Some databases do not signify if a field is auto-increment | | R | Serial field. Includes serial, autoincrement integers. This works for selected databases. Some databases do not signify if a field is auto-increment | ||
+ | |||
+ | If ADOdb encounters a field type that it does not know about, It provides a method of defaulting the field handling. | ||
+ | |||
+ | ===== Using MetaTypes ===== | ||
+ | PHP programs often include code that branches based on the type of data available, for example to format numbers based on whether they are integer or floating point. Using the MetaType simplifies the branching by representing possibly 5-10 Actual Types of Floating Point numbers with a single Metatype, **N**. | ||
+ | |||
+ | The next page in the lesson will show how to retrieve and use MetaTypes |
v5/userguide/learn_dictionary/metatypes.txt · Last modified: 2016/03/17 00:08 by mnewnham