Oracle 5.0 Reference Manual page 853

Table of Contents

Advertisement

BINARY(M)
The
type is similar to the
BINARY
character strings.
represents the column length in bytes.
M
VARBINARY(M)
The
type is similar to the
VARBINARY
nonbinary character strings.
TINYBLOB
A
column with a maximum length of 255 (2
BLOB
a 1-byte length prefix that indicates the number of bytes in the value.
TINYTEXT [CHARACTER SET charset_name] [COLLATE collation_name]
A
column with a maximum length of 255 (2
TEXT
less if the value contains multi-byte characters. Each
prefix that indicates the number of bytes in the value.
BLOB[(M)]
A
column with a maximum length of 65,535 (2
BLOB
2-byte length prefix that indicates the number of bytes in the value.
An optional length
M
smallest
type large enough to hold values
BLOB
TEXT[(M)] [CHARACTER SET charset_name] [COLLATE collation_name]
A
column with a maximum length of 65,535 (2
TEXT
is less if the value contains multi-byte characters. Each
prefix that indicates the number of bytes in the value.
An optional length
M
smallest
type large enough to hold values
TEXT
MEDIUMBLOB
A
column with a maximum length of 16,777,215 (2
BLOB
stored using a 3-byte length prefix that indicates the number of bytes in the value.
MEDIUMTEXT [CHARACTER SET charset_name] [COLLATE collation_name]
A
column with a maximum length of 16,777,215 (2
TEXT
length is less if the value contains multi-byte characters. Each
3-byte length prefix that indicates the number of bytes in the value.
LONGBLOB
A
column with a maximum length of 4,294,967,295 or 4GB (2
BLOB
maximum length of
LONGBLOB
client/server protocol and available memory. Each
prefix that indicates the number of bytes in the value.
LONGTEXT [CHARACTER SET charset_name] [COLLATE collation_name]
A
column with a maximum length of 4,294,967,295 or 4GB (2
TEXT
maximum length is less if the value contains multi-byte characters. The effective maximum length
of
columns also depends on the configured maximum packet size in the client/server
LONGTEXT
protocol and available memory. Each
indicates the number of bytes in the value.
String Type Overview
type, but stores binary byte strings rather than nonbinary
CHAR
VARCHAR
represents the maximum column length in bytes.
M
can be given for this type. If this is done, MySQL creates the column as the
can be given for this type. If this is done, MySQL creates the column as the
columns depends on the configured maximum packet size in the
LONGTEXT
833
type, but stores binary byte strings rather than
8
– 1) bytes. Each
TINYBLOB
8
– 1) characters. The effective maximum length is
value is stored using a 1-byte length
TINYTEXT
16
– 1) bytes. Each
bytes long.
M
16
– 1) characters. The effective maximum length
value is stored using a 2-byte length
TEXT
characters long.
M
24
– 1) bytes. Each
24
– 1) characters. The effective maximum
MEDIUMTEXT
32
– 1) bytes. The effective
value is stored using a 4-byte length
LONGBLOB
32
– 1) characters. The effective
value is stored using a 4-byte length prefix that
value is stored using
value is stored using a
BLOB
value is
MEDIUMBLOB
value is stored using a

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents