~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
drop table if exists t1;
2
CREATE TABLE t1 (
3
a char(5) NOT NULL,
4
b char(4) NOT NULL,
5
KEY (a),
6
KEY (b)
7
);
8
INSERT INTO t1 VALUES ('A','B'),('b','A'),('C','c'),('D','E'),('a','a');
9
select * from t1,t1 as t2;
10
a	b	a	b
11
A	B	A	B
1718.2.1 by Lee Bieber
For the feature request (https://blueprints.launchpad.net/drizzle/+spec/limit-maximum-sort-size)
12
A	B	C	c
13
A	B	D	E
14
A	B	a	a
15
A	B	b	A
1 by brian
clean slate
16
C	c	A	B
1718.2.1 by Lee Bieber
For the feature request (https://blueprints.launchpad.net/drizzle/+spec/limit-maximum-sort-size)
17
C	c	C	c
18
C	c	D	E
19
C	c	a	a
20
C	c	b	A
1 by brian
clean slate
21
D	E	A	B
1718.2.1 by Lee Bieber
For the feature request (https://blueprints.launchpad.net/drizzle/+spec/limit-maximum-sort-size)
22
D	E	C	c
23
D	E	D	E
24
D	E	a	a
25
D	E	b	A
1 by brian
clean slate
26
a	a	A	B
1718.2.1 by Lee Bieber
For the feature request (https://blueprints.launchpad.net/drizzle/+spec/limit-maximum-sort-size)
27
a	a	C	c
28
a	a	D	E
29
a	a	a	a
1 by brian
clean slate
30
a	a	b	A
1718.2.1 by Lee Bieber
For the feature request (https://blueprints.launchpad.net/drizzle/+spec/limit-maximum-sort-size)
31
b	A	A	B
1 by brian
clean slate
32
b	A	C	c
33
b	A	D	E
34
b	A	a	a
1718.2.1 by Lee Bieber
For the feature request (https://blueprints.launchpad.net/drizzle/+spec/limit-maximum-sort-size)
35
b	A	b	A
1 by brian
clean slate
36
explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;
37
id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
38
1	SIMPLE	t1	ALL	a	NULL	NULL	NULL	5	
39
1	SIMPLE	t2	ALL	b	NULL	NULL	NULL	5	Using where; Using join buffer
40
select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B order by binary t1.a,t2.a;
41
a	b	a	b
42
A	B	a	a
43
A	B	b	A
44
C	c	C	c
45
a	a	a	a
46
a	a	b	A
47
b	A	A	B
48
select * from t1 where a='a';
49
a	b
50
A	B
51
a	a
52
drop table t1;