Server System Variables
495
Dynamic Variable
Yes
Deprecated
5.0, by
sql_log_bin
Permitted Values
Type
boolean
This variable is deprecated, and is mapped to
sql_log_bin
[494]
. It is removed in MySQL 5.5.
•
sql_mode
[495]
Command-Line Format
--sql-mode=name
Option-File Format
sql-mode
Option Sets Variable
Yes,
sql_mode
[495]
Variable Name
sql_mode
Variable Scope
Global, Session
Dynamic Variable
Yes
The current server SQL mode, which can be set dynamically. See
Section 5.1.7, “Server SQL
Modes”
.
•
sql_notes
[495]
If set to 1 (the default), warnings of
Note
level increment
warning_count
and the server records
them. If set to 0,
Note
warnings do not increment
warning_count
[507]
and the server does
not record them.
mysqldump
includes output to set this variable to 0 so that reloading the dump
file does not produce warnings for events that do not affect the integrity of the reload operation.
sql_notes
[495]
was added in MySQL 5.0.3.
•
sql_quote_show_create
[495]
If set to 1 (the default), the server quotes identifiers for
SHOW CREATE TABLE
and
SHOW CREATE
DATABASE
statements. If set to 0, quoting is disabled. This option is enabled by default so that
replication works for identifiers that require quoting. See
Section 13.7.5.9, “
SHOW CREATE TABLE
Syntax”
, and
Section 13.7.5.6, “
SHOW CREATE DATABASE
Syntax”
.
•
sql_safe_updates
[495]
If set to 1, MySQL aborts
UPDATE
or
DELETE
statements that do not use a key in the
WHERE
clause
or a
LIMIT
clause. This makes it possible to catch
UPDATE
or
DELETE
statements where keys are
not used properly and that would probably change or delete a large number of rows. The default
value is 0.
•
sql_select_limit
[495]
Variable Name
sql_select_limit
Variable Scope
Global, Session
Dynamic Variable
Yes
Permitted Values
Type
numeric
The maximum number of rows to return from
SELECT
statements. The default value for a new
connection is the maximum number of rows that the server permits per table, which depends on
the server configuration and may be affected if the server build was configured with
--with-big-
tables
[123]
. Typical default values are (2
32
)–1 or (2
64
)–1. If you have changed the limit, the default
value can be restored by assigning a value of
DEFAULT
.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...