Oracle 5.0 Reference Manual page 1051

Table of Contents

Advertisement

two different connections can use the same temporary table name without conflicting with each other
or with an existing
temporary table is dropped.) To create temporary tables, you must have the
[576]
TABLES
Existing Table with Same Name
The keywords
no verification that the existing table has a structure identical to that indicated by the
statement.
Physical Representation
MySQL represents each table by an
storage engine for the table might create other files as well.
For
InnoDB
configuration option. When this option is turned off, all
system
tablespace, represented by one or more
option is turned on, the table data and all associated indexes are stored in a
database directory.
For
MyISAM
tbl_name, there are three disk files.
File
tbl_name.frm
tbl_name.MYD
tbl_name.MYI
Chapter 14, Storage
Data Types and Attributes for Columns
data_type
data type. The data type syntax shown is representative only. For a full description of the syntax
available for specifying column data types, as well as information about the properties of each type,
see
Chapter 11, Data
Some attributes do not apply to all data types.
point types.
• If neither
specified.
• An integer or floating-point column can have the additional attribute AUTO_INCREMENT. When you
insert a value of
is set to the next sequence value. Typically this is value+1, where
column currently in the table.
To retrieve an
SQL function or the
Functions", and
If the
NO_AUTO_VALUE_ON_ZERO
columns as
non-TEMPORARY
privilege.
Note
CREATE TABLE
you use the
TEMPORARY
prevent an error from occurring if the table exists. However, there is
IF NOT EXISTS
tables, the file storage is controlled by the
tables, the storage engine creates data and index files. Thus, for each
Purpose
Table format (definition) file
Data file
Index file
Engines, describes what files each storage engine creates to represent tables.
represents the data type in a column definition.
Types, and
Section 12.16, "Spatial
does not apply to the
DEFAULT
nor
is specified, the column is treated as though
NULL
NOT NULL
(recommended) or
NULL
AUTO_INCREMENT
AUTO_INCREMENT
mysql_insert_id()
Section 20.6.6.37,
without generating a new sequence value. See
0
Syntax
CREATE TABLE
table of the same name. (The existing table is hidden until the
does not automatically commit the current active transaction if
keyword.
table format (definition) file in the database directory. The
.frm
innodb_file_per_table
InnoDB
ibdata*
files. For each
AUTO_INCREMENT
or
BLOB
TEXT
into an indexed
0
sequences begin with 1.
value after inserting a row, use the
C API function. See
"mysql_insert_id()".
[536]
SQL mode is enabled, you can store
1031
CREATE TEMPORARY
tables and indexes are stored in the
InnoDB
.ibd file
represents a spatial
spatial_type
Extensions".
applies only to integer and floating-
types.
NULL
AUTO_INCREMENT
is the largest value for the
value
LAST_INSERT_ID()
Section 12.13, "Information
Section 5.1.7, "Server SQL
CREATE TABLE
[1241]
table created when this
located inside the
table
MyISAM
had been
column, the column
[961]
in
0
AUTO_INCREMENT
Modes".

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents