Contents
Using MySQL Extensions ................................................................................................114
Aliases ........................................................................................................................115
ALTER TABLE extensions .........................................................................................115
CREATE extensions ...................................................................................................118
DML extensions .........................................................................................................119
DROP extensions .......................................................................................................124
The LIMIT extension .................................................................................................125
SELECT extensions ................................................................................................... 126
SELECT...INTOOUTFILE/SELECT...INTODUMPFILE...............................126
SQL_SMALL_RESULT/SQL_BIG_RESULT ...............................................................127
UNION . . . ORDER BY ............................................................................................127
SELECT...FORUPDATE......................................................................................127
SELECT...LOCKINSHAREMODE....................................................................128
DISTINCTROW .........................................................................................................128
SQL_BUFFER_RESULT .............................................................................................129
HIGH_PRIORITY/LOW_PRIORITY ..........................................................................129
Server maintenance extensions .................................................................................129
The SET extension and user-defined variables ........................................................ 131
The SHOW extension ...............................................................................................135
Table definition extensions .......................................................................................147
Table maintenance extensions ..................................................................................150
Transactional statement extensions .......................................................................... 156
Summary ............................................................................................................................158
Chapter5:MySQLDataTypes ......................159
Looking at MySQL Data Types ......................................................................................159
Character String Types ................................................................................................... 160
Length ........................................................................................................................162
Character string type attributes ................................................................................164
National Character String Types ...................................................................................166
Binary Large Object String Types .................................................................................168
BLOB values ..............................................................................................................169
BINARY values ...........................................................................................................169
BINARY length ..........................................................................................................169
VARBINARY length ...................................................................................................170
Numeric Types ..................................................................................................................170
Numeric data sizes and ranges .................................................................................172
Numeric data type attributes ....................................................................................177
Boolean Types ...................................................................................................................180
Datetime Types .................................................................................................................183
Allowed input values .................................................................................................185
Microsecond input ....................................................................................................186
Automatic updates .....................................................................................................187
Conversion issues ......................................................................................................188
Numeric functions and DATETIME types ................................................................188
xvii