3
3
insert into t1 values("hello world"),("Hello mars"),(NULL);
4
4
select load_file(concat(@tmpdir,"/outfile-test.1"));
5
5
load_file(concat(@tmpdir,"/outfile-test.1"))
10
7
select load_file(concat(@tmpdir,"/outfile-test.2"));
11
8
load_file(concat(@tmpdir,"/outfile-test.2"))
13
10
select load_file(concat(@tmpdir,"/outfile-test.3"));
14
11
load_file(concat(@tmpdir,"/outfile-test.3"))
16
ERROR HY000: File 'DRIZZLETEST_VARDIR/tmp/outfile-test.1' already exists
17
ERROR HY000: File 'DRIZZLETEST_VARDIR/tmp/outfile-test.2' already exists
18
ERROR HY000: File 'DRIZZLETEST_VARDIR/tmp/outfile-test.3' already exists
19
select load_file(DRIZZLETEST_BAD_FILE);
20
ERROR HY000: The file 'DRIZZLETEST_BAD_FILE' must be in the schema directory or be readable by all
13
ERROR HY000: File '../../tmp/outfile-test.1' already exists
14
ERROR HY000: File '../../tmp/outfile-test.2' already exists
15
ERROR HY000: File '../../tmp/outfile-test.3' already exists
16
select load_file(concat(@tmpdir,"/outfile-test.not-exist"));
17
load_file(concat(@tmpdir,"/outfile-test.not-exist"))
22
20
select load_file(concat(@tmpdir,"/outfile-test.4"));
23
21
load_file(concat(@tmpdir,"/outfile-test.4"))
26
23
CREATE TABLE t1 (a INT);
27
EXPLAIN SELECT * INTO OUTFILE 'DRIZZLETEST_VARDIR/tmp/t1.txt'
28
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\r\n'
26
INTO OUTFILE '../../tmp/t1.txt'
27
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\r\n'
30
29
id select_type table type possible_keys key key_len ref rows Extra
31
30
1 SIMPLE t1 ALL NULL NULL NULL NULL 1