1838.2.1
by Brian Aker
More docs. |
1 |
Built in Column Types
|
1900.2.4
by Stewart Smith
fix more docs warnings: underline/overline too short |
2 |
=====================
|
1838.2.1
by Brian Aker
More docs. |
3 |
|
4 |
---------------------
|
|
5 |
VARCHAR and VARBINARY
|
|
6 |
---------------------
|
|
7 |
||
8 |
A VARCHAR or VARBINARY type is used to store variable length data. Indexes |
|
9 |
on these types are by default the full length of the data stored. |
|
10 |
The only difference between the two types is the COLLATION which is |
|
1994.5.34
by Stewart Smith
add note that text/varchar is valid utf8 |
11 |
used. VARBINARY uses a binary collation for all index usage. VARCHAR can only |
12 |
contain valid UTF-8 characters. |
|
1838.2.1
by Brian Aker
More docs. |
13 |
|
14 |
-------------
|
|
15 |
TEXT and BLOB
|
|
16 |
-------------
|
|
17 |
||
18 |
A TEXT or BLOB type is used to store data which is over XXX in size. Indexes |
|
19 |
on these types must specificy the number of character or bytes which should |
|
20 |
be used. The only difference between the two types is the COLLATION which is |
|
1994.5.34
by Stewart Smith
add note that text/varchar is valid utf8 |
21 |
used. A BLOB usees a binary collation for all index usage. A TEXT column |
22 |
can only contain valid UTF-8 characters. |
|
1838.2.1
by Brian Aker
More docs. |
23 |
|
24 |
---------
|
|
25 |
NUMERICAL
|
|
26 |
---------
|
|
27 |
||
1994.4.18
by Marisa Plumb
merged with up to date trunk |
28 |
BIGINT and INTEGER exist as Drizzle's two integer numerical types. BIGINT is |
29 |
a 64bit integer while INTEGER is a 32bit integer. |
|
1838.2.1
by Brian Aker
More docs. |
30 |
|
31 |
DOUBLE is the systems native double type. |
|
32 |
||
33 |
DECIMAL is a fixed precision number. |
|
34 |
||
35 |
--------
|
|
36 |
TEMPORAL
|
|
37 |
--------
|
|
38 |
||
1994.4.18
by Marisa Plumb
merged with up to date trunk |
39 |
DATETIME |
40 |
||
41 |
TIMESTAMP |
|
42 |
||
43 |
DATE |
|
1838.2.1
by Brian Aker
More docs. |
44 |
|
45 |
----
|
|
46 |
ENUM
|
|
47 |
----
|
|
48 |
||
49 |
Enum (enumerated) types are static lists of strings that are defineed on |
|
50 |
table creation. They can be used to represent a collection of string types |
|
51 |
that are sorted based on the order that they are created. |
|
1878.5.5
by Brian Aker
Additional documentation. |
52 |
|
53 |
------
|
|
54 |
SERIAL
|
|
55 |
------
|
|
56 |
||
57 |
A SERIAL is a meta type that creates a column where a number is inserted in |
|
58 |
increasing order as rows are inserted into the table. The actual type is a |
|
59 |
BIGINT. |