Oracle 5.0 Reference Manual page 293

Table of Contents

Advertisement

Reconnect to the server. The optional database name and host name arguments may be given to
specify the default database or the host where the server is running. If omitted, the current values are
used.
delimiter
str,
Change the string that
the semicolon character (";").
The delimiter string can be specified as an unquoted or quoted argument on the
command line. Quoting can be done with either single quote ('), double quote ("), or backtick (`)
characters. To include a quote within a quoted string, either quote the string with a different quote
character or escape the quote with a backslash ("\") character. Backslash should be avoided outside
of quoted strings because it is the escape character for MySQL. For an unquoted argument, the
delimiter is read up to the first space or end of line. For a quoted argument, the delimiter is read up to
the matching quote on the line.
interprets instances of the delimiter string as a statement delimiter anywhere it occurs, except
mysql
within quoted strings. Be careful about defining a delimiter that might occur within other words. For
example, if you define the delimiter as X, you will be unable to use the word
interprets this as
mysql
When the delimiter recognized by
of that character are sent to the server without interpretation. However, the server itself still interprets
";" as a statement delimiter and processes statements accordingly. This behavior on the server side
comes into play for multiple-statement execution (see
Statement
Execution"), and for parsing the body of stored procedures and functions and triggers (see
Section 18.1, "Defining Stored
edit,
\e
Edit the current input statement.
variables to determine which editor to use. The default editor is
The
command works only in Unix.
edit
ego,
\G
Send the current statement to the server to be executed and display the result using vertical format.
Be careful about defining a delimiter that might occur within other words. For example, if you define
the delimiter as X, you will be unable to use the word
exit,
\q
Exit mysql.
go,
\g
Send the current statement to the server to be executed.
nopager,
\n
Disable output paging. See the description for pager.
The
command works only in Unix.
nopager
notee,
\t
Disable output copying to the tee file. See the description for tee.
nowarning,
\w
— The MySQL Command-Line Tool
mysql
\d str
interprets as the separator between SQL statements. The default is
mysql
followed by the delimiter X.
INDE
is set to something other than the default of ";", instances
mysql
Programs").
checks the values of the
mysql
273
Section 20.6.15, "C API Support for Multiple
and
EDITOR
if neither variable is set.
vi
in statements.
INDEX
delimiter
in statements.
INDEX
environment
VISUAL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents