2005-05-17 21:14:01 +02:00
|
|
|
drop table if exists t1;
|
|
|
|
create table t1(a int);
|
|
|
|
insert into t1 values(1);
|
2005-10-06 16:54:43 +02:00
|
|
|
ERROR at line 9: DELIMITER must be followed by a 'delimiter' character or string
|
2005-05-17 21:14:01 +02:00
|
|
|
|
|
|
|
Test default delimiter ;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
|
|
|
|
Test delimiter without arg
|
|
|
|
|
|
|
|
Test delimiter :
|
|
|
|
a
|
|
|
|
1
|
|
|
|
|
|
|
|
Test delimiter :
|
|
|
|
a
|
|
|
|
1
|
|
|
|
|
|
|
|
Test delimiter :;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
|
|
|
|
Test delimiter //
|
|
|
|
a
|
|
|
|
1
|
|
|
|
|
|
|
|
Test delimiter MySQL
|
|
|
|
a
|
|
|
|
1
|
|
|
|
|
|
|
|
Test delimiter delimiter
|
|
|
|
a
|
|
|
|
1
|
2005-08-09 21:17:28 +02:00
|
|
|
Tables_in_test
|
|
|
|
t1
|
|
|
|
t2
|
|
|
|
t3
|
2006-07-17 12:22:21 +02:00
|
|
|
_
|
2005-05-17 21:14:01 +02:00
|
|
|
Test delimiter : from command line
|
|
|
|
a
|
|
|
|
1
|
2006-07-17 12:22:21 +02:00
|
|
|
_
|
2005-05-17 21:14:01 +02:00
|
|
|
Test delimiter :; from command line
|
|
|
|
a
|
|
|
|
1
|
2006-07-17 12:22:21 +02:00
|
|
|
_
|
2005-05-17 21:14:01 +02:00
|
|
|
Test 'go' command(vertical output) G
|
|
|
|
*************************** 1. row ***************************
|
|
|
|
a: 1
|
2006-07-17 12:22:21 +02:00
|
|
|
_
|
2005-05-17 21:14:01 +02:00
|
|
|
Test 'go' command g
|
|
|
|
a
|
|
|
|
1
|
|
|
|
drop table t1;
|
2005-06-03 15:29:05 +02:00
|
|
|
create table t1(a int);
|
|
|
|
lock tables t1 write;
|
|
|
|
database()
|
|
|
|
test
|
|
|
|
unlock tables;
|
|
|
|
drop table t1;
|
2006-02-09 15:23:09 +01:00
|
|
|
ソ
|
|
|
|
ソ
|
|
|
|
c_cp932
|
|
|
|
ソ
|
|
|
|
ソ
|
|
|
|
ソ
|
|
|
|
ソ
|
|
|
|
ソ
|
|
|
|
ソ
|
|
|
|
ソ
|
2006-03-03 22:26:38 +01:00
|
|
|
+----------------------+------------+--------+
|
|
|
|
| concat('>',col1,'<') | col2 | col3 |
|
|
|
|
+----------------------+------------+--------+
|
2006-04-04 23:35:07 +02:00
|
|
|
| >a < | b | 123421 |
|
|
|
|
| >a < | 0123456789 | 4 |
|
2006-05-10 04:35:51 +02:00
|
|
|
| >abcd< | | 4 |
|
2006-03-03 22:26:38 +01:00
|
|
|
+----------------------+------------+--------+
|
2006-04-04 23:35:07 +02:00
|
|
|
+------+------+---------------------------+
|
|
|
|
| i | j | k |
|
|
|
|
+------+------+---------------------------+
|
|
|
|
| 1 | NULL | NULL |
|
|
|
|
| NULL | NULL | <-----------------------> |
|
|
|
|
| NULL | NULL | <----- |
|
|
|
|
| NULL | NULL | Τη γλώσσα |
|
|
|
|
| NULL | NULL | ᛖᚴ ᚷᛖᛏ |
|
|
|
|
+------+------+---------------------------+
|
2006-04-16 23:17:36 +02:00
|
|
|
+------+---+------+
|
|
|
|
| i | j | k |
|
|
|
|
+------+---+------+
|
|
|
|
| NULL | 1 | NULL |
|
|
|
|
+------+---+------+
|
|
|
|
+-------+---------+------+-----+---------+-------+
|
|
|
|
| Field | Type | Null | Key | Default | Extra |
|
|
|
|
+-------+---------+------+-----+---------+-------+
|
|
|
|
| i | int(11) | YES | | NULL | |
|
2006-05-10 04:35:51 +02:00
|
|
|
| j | int(11) | NO | | | |
|
2006-04-16 23:17:36 +02:00
|
|
|
| k | int(11) | YES | | NULL | |
|
|
|
|
+-------+---------+------+-----+---------+-------+
|
2006-05-10 04:35:51 +02:00
|
|
|
+------+------+
|
|
|
|
| i | s1 |
|
|
|
|
+------+------+
|
|
|
|
| 1 | x |
|
|
|
|
| 2 | NULL |
|
|
|
|
| 3 | |
|
|
|
|
+------+------+
|
|
|
|
End of 5.0 tests
|