Oracle 5.0 Reference Manual page 1056

Table of Contents

Advertisement

that do not apply to a given storage engine may be accepted and remembered as part of the table
definition. Such options then apply if you later use
storage engine.
AUTO_INCREMENT
The initial
AUTO_INCREMENT
tables. It is also supported for
engines that do not support the
one less than the desired value after creating the table, and then delete the dummy row.
For engines that support the
also use
ALTER TABLE tbl_name AUTO_INCREMENT = N
The value cannot be set lower than the maximum value currently in the column.
AVG_ROW_LENGTH
An approximation of the average row length for your table. You need to set this only for large tables
with variable-size rows.
When you create a
MyISAM
options to decide how big the resulting table is. If you don't specify either option,
AVG_ROW_LENGTH
the maximum size for
MySQL 5.0.6). (If your operating system does not support files that large, table sizes are constrained
by the file size limit.) If you want to keep down the pointer sizes to make the index smaller and
faster and you don't really need big files, you can decrease the default pointer size by setting the
myisam_data_pointer_size
Section 5.1.4, "Server System
default limit and are willing to have your tables slightly slower and larger than necessary, you can
increase the default pointer size by setting this variable. Setting the value to 7 permits table sizes up
to 65,536TB.
[DEFAULT] CHARACTER SET
Specify a default character set for the table.
character set name is DEFAULT, the database character set is used.
CHECKSUM
Set this to 1 if you want MySQL to maintain a live checksum for all rows (that is, a checksum that
MySQL updates automatically as the table changes). This makes the table a little slower to update,
but also makes it easier to find corrupted tables. The
checksum.
(MyISAM
[DEFAULT] COLLATE
Specify a default collation for the table.
COMMENT
A comment for the table, up to 60 characters long.
CONNECTION
The connection string for a
that, use a
COMMENT
DATA
DIRECTORY,
By using
DATA DIRECTORY='directory'
where the
storage engine should put a table's data file and index file. The directory must be
MyISAM
the full path name to the directory, not a relative path.
CREATE TABLE
value for the table. In MySQL 5.0, this works for
as of MySQL 5.0.3. To set the first auto-increment value for
InnoDB
AUTO_INCREMENT
AUTO_INCREMENT
table, MySQL uses the product of the
data and index table files is 256TB of data by default (4GB before
MyISAM
[473]
system variable, which was added in MySQL 4.1.2. (See
Variables".) If you want all your tables to be able to grow above the
only.)
table. This option is available as of MySQL 5.0.13; before
FEDERATED
option for the connection string.
INDEX DIRECTORY
1036
Syntax
to convert the table to use a different
ALTER TABLE
table option, insert a "dummy" row with a value
table option in
CREATE TABLE
to reset the
MAX_ROWS
is a synonym for
CHARSET
CHECKSUM TABLE
or
INDEX DIRECTORY='directory'
and
MyISAM
MEMORY
statements, you can
AUTO_INCREMENT
and
SET. If the
CHARACTER
statement reports the
you can specify
value.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents