~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/string_data_types.rst

  • Committer: Lee Bieber
  • Date: 2011-01-14 17:48:28 UTC
  • mfrom: (1994.4.35 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2086.
  • Revision ID: kalebral@gmail.com-20110114174828-7tnx7sgpjov3ir41
Merge Marisa - Document new data types and change in build file to treat warnings as errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
String Data Types
 
2
=================
 
3
 
 
4
The string types in Drizzle are explained in the following groupings:
 
5
 
 
6
VARCHAR and VARBINARY
 
7
---------------------
 
8
 
 
9
A VARCHAR or VARBINARY type is used to store variable length data. Indexes on these types are by default the full length of the data stored. The only difference between the two types is the COLLATION which is used. VARBINARY uses a binary collation for all index usage.
 
10
 
 
11
TEXT and BLOB
 
12
-------------
 
13
 
 
14
A TEXT or BLOB type is used to store data which is over XXX in size. Indexes on these types must specify the number of character or bytes which should be used. The only difference between the two types is the COLLATION which is used. A BLOB uses a binary collation for all index usage.
 
15
 
 
16
ENUM
 
17
----
 
18
 
 
19
Enum (enumerated) types are static lists of strings that are defined on table creation. They can be used to represent a collection of string types that are sorted based on the order that they are created.
 
 
b'\\ No newline at end of file'