Oracle 5.0 Reference Manual page 1197

Table of Contents

Advertisement

• If
is MUL, multiple occurrences of a given value are permitted within the column. The column is
Key
the first column of a nonunique index or a unique-valued index that can contain
If more than one of the
highest priority, in the order PRI, UNI, MUL.
A
index may be displayed as
UNIQUE
in the table. A
KEY
index; although the combination of the columns is unique, each column can still hold multiple
occurrences of a given value.
Before MySQL 5.0.11, if the column permits
single-column
a
value if the column is not declared
NULL
than
regardless of whether the column permits NULL; you can see from the
MUL
not the column can contain NULL.
The
Default
column has an explicit default of NULL. As of MySQL 5.0.50,
definition has no
The
field contains any additional information that is available about a given column. The value is
Extra
auto_increment
Privileges
the
keyword.
FULL
indicates any comment the column has. This value is displayed only if you use the
Comment
keyword.
SHOW FIELDS
mysqlshow db_name tbl_name
The
DESCRIBE
"DESCRIBE
The
SHOW CREATE
information about tables. See
13.7.5.6.
SHOW CREATE DATABASE
SHOW CREATE {DATABASE | SCHEMA} [IF NOT EXISTS]
Shows the
CREATE DATABASE
includes an
a synonym for
mysql>
SHOW CREATE DATABASE test\G
*************************** 1. row ***************************
Database: test
Create Database: CREATE DATABASE `test`
mysql>
SHOW CREATE SCHEMA test\G
*************************** 1. row ***************************
Database: test
Create Database: CREATE DATABASE `test`
SHOW CREATE DATABASE
sql_quote_show_create
13.7.5.7.
SHOW CREATE FUNCTION
values applies to a given column of a table,
Key
index may display as
UNIQUE
index is used. The rationale was that multiple rows in a
UNIQUE
field indicates the default value that is assigned to the column. This is
clause.
DEFAULT
for columns that have the
indicates the privileges you have for the column. This value is displayed only if you use
is a synonym for
SHOW
statement provides information similar to
Syntax".
TABLE,
SHOW TABLE
Section 13.7.5,
Syntax
statement that creates the given database. If the
clause, the output too includes such a clause.
IF NOT EXISTS
SHOW CREATE DATABASE
/*!40100 DEFAULT CHARACTER SET latin1 */
/*!40100 DEFAULT CHARACTER SET latin1 */
quotes table and column names according to the value of the
[495]
option. See
Syntax
Syntax
SHOW
if it cannot contain
PRI
if several columns form a composite
MUL
values, the
NULL
NULL. As of MySQL 5.0.11, the display is
NOT
AUTO_INCREMENT
COLUMNS. You can also list a table's columns with the
command.
SHOW
STATUS, and
SHOW INDEX
"SHOW
Syntax".
db_name
as of MySQL 5.0.2.
Section 5.1.4, "Server System
1177
NULL
displays the one with the
Key
values and there is no
NULL
value can be
Key
MUL
UNIQUE
Null
is also
Default
NULL
attribute and empty otherwise.
COLUMNS. See
Section 13.8.1,
statements also provide
SHOW
SHOW CREATE SCHEMA
Variables".
values.
PRIMARY
UNIQUE
even when a
index can hold
rather
UNI
field whether or
if the
NULL
if the column
FULL
statement
is

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents