Oracle 5.0 Reference Manual page 1109

Table of Contents

Advertisement

The resulting file does not have to conform to SQL syntax, so nothing else need be escaped.
If the
FIELDS ESCAPED BY
NULL, not \N. It is probably not a good idea to specify an empty escape character, particularly if field
values in your data contain any of the characters in the list just given.
Here is an example that produces a file in the comma-separated values (CSV) format used by many
programs:
SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
FROM test_table;
If you use
INTO DUMPFILE
without any column or line termination and without performing any escape processing. This is useful if
you want to store a
13.2.8.2.
Syntax
JOIN
MySQL supports the following
and multiple-table
table_references:
escaped_table_reference
escaped_table_reference:
table_reference
| { OJ
table_reference
table_reference:
table_factor
|
join_table
table_factor:
tbl_name
|
table_subquery
| (
table_references
join_table:
table_reference
|
table_reference
|
table_reference
|
table_reference
|
table_reference
join_condition:
ON
conditional_expr
| USING (column_list)
index_hint:
USE {INDEX|KEY} [FOR JOIN] (index_list)
| IGNORE {INDEX|KEY} [FOR JOIN] (index_list)
| FORCE {INDEX|KEY} [FOR JOIN] (index_list)
character is empty, no characters are escaped and
instead of
value in a file.
BLOB
Note
Any file created by
on the server host. The reason for this is that the MySQL server cannot create
a file that is owned by anyone other than the user under whose account it is
running. (You should never run
The file thus must be world-writable so that you can manipulate its contents.
If the
secure_file_priv
name, the file to be written must be located in that directory.
syntaxes for the
JOIN
and
DELETE
UPDATE
[, escaped_table_reference] ...
}
[[AS] alias] [index_hint]
[AS]
alias
)
[INNER | CROSS] JOIN
STRAIGHT_JOIN
table_factor
STRAIGHT_JOIN
table_factor
{LEFT|RIGHT} [OUTER] JOIN
NATURAL [{LEFT|RIGHT} [OUTER]] JOIN
Syntax
SELECT
OUTFILE, MySQL writes only one row into the file,
INTO
or
INTO OUTFILE
INTO DUMPFILE
as
mysqld
[490]
system variable is set to a nonempty directory
table_references
statements:
table_factor
[join_condition]
ON
conditional_expr
table_reference join_condition
table_factor
1089
NULL
is writable by all users
for this and other reasons.)
root
part of
SELECT
is output as
statements

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents