v5:dictionary:column_attributes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
v5:dictionary:column_attributes [2016/03/20 23:30] – mnewnham | v5:dictionary:column_attributes [2016/04/03 01:29] – [CONSTRAINT] mnewnham | ||
---|---|---|---|
Line 53: | Line 53: | ||
</ | </ | ||
==== AUTO or AUTOINCREMENT ==== | ==== AUTO or AUTOINCREMENT ==== | ||
- | Creates the column as auto-increment. Support for this varies from one database to another. Some databases designate a field with an auto-increment flag as the primary key. | + | Creates the column as auto-increment. Support for this varies from one database to another. Some databases designate a field with an auto-increment flag as the primary key, and most databases only allow a single column in a table to be designated as auto-increment. |
----------------------- | ----------------------- | ||
Line 60: | Line 60: | ||
</ | </ | ||
==== CONSTRAINT ==== | ==== CONSTRAINT ==== | ||
+ | Adds a constraint to column. The syntax for the constraint must be defined as required by the database. | ||
-------------------------- | -------------------------- | ||
<WRAP right box 150px> | <WRAP right box 150px> | ||
Line 90: | Line 90: | ||
----------------------------------- | ----------------------------------- | ||
+ | <WRAP right box 150px> | ||
+ | **Usage: Column** | ||
+ | </ | ||
==== INDEX ==== | ==== INDEX ==== | ||
+ | Creates a single column index using the same name as the column, with ' | ||
------------------------------- | ------------------------------- | ||
- | ==== KEY ==== | ||
- | -------------------------------- | + | <WRAP right box 150px> |
+ | ** Usage: Any ** | ||
+ | </ | ||
==== NOQUOTE ==== | ==== NOQUOTE ==== | ||
+ | Prevents ADOdb from applying the normal quoting rules to tables, columns and indexes. For example, a column name that contains a special character such as // | ||
-------------------------------- | -------------------------------- | ||
<WRAP right box 150px> | <WRAP right box 150px> | ||
Line 108: | Line 112: | ||
**Usage: Column** | **Usage: Column** | ||
</ | </ | ||
- | ==== PRIMARY ==== | + | ==== PRIMARY |
Indicates if the column is part of the [[wp> | Indicates if the column is part of the [[wp> | ||
--------------------------- | --------------------------- | ||
Line 122: | Line 126: | ||
</ | </ | ||
==== UNSIGNED ==== | ==== UNSIGNED ==== | ||
+ | Creates an unsigned integer. |
v5/dictionary/column_attributes.txt · Last modified: 2022/09/02 04:11 by mnewnham