Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
bdb0b692
Commit
bdb0b692
authored
Oct 18, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@work.mysql.com:/home/bk/mysql-4.1
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
parents
8c3cf6ad
f3d3d288
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
mysql-test/r/heap_btree.result
mysql-test/r/heap_btree.result
+5
-2
mysql-test/t/heap_btree.test
mysql-test/t/heap_btree.test
+2
-1
No files found.
mysql-test/r/heap_btree.result
View file @
bdb0b692
...
...
@@ -68,13 +68,16 @@ explain select * from t1 where a in (869751,736494,226312,802616);
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range uniq_id uniq_id 4 NULL 4 where used; Using index
drop table t1;
create table t1 (x int not null, y int not null, key x using BTREE (x), unique y using BTREE (y))
create table t1 (x int not null, y int not null, key x using BTREE (x
,y
), unique y using BTREE (y))
type=heap;
insert into t1 values (1,1),(2,2),(1,3),(2,4),(2,5),(2,6);
explain select * from t1 where x=1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ref x x 4 const 1 where used
select * from t1 where x=1;
x y
1 3
1 1
1 3
select * from t1,t1 as t2 where t1.x=t2.y;
x y x y
1 1 1 1
...
...
mysql-test/t/heap_btree.test
View file @
bdb0b692
...
...
@@ -42,9 +42,10 @@ alter table t1 type=myisam;
explain
select
*
from
t1
where
a
in
(
869751
,
736494
,
226312
,
802616
);
drop
table
t1
;
create
table
t1
(
x
int
not
null
,
y
int
not
null
,
key
x
using
BTREE
(
x
),
unique
y
using
BTREE
(
y
))
create
table
t1
(
x
int
not
null
,
y
int
not
null
,
key
x
using
BTREE
(
x
,
y
),
unique
y
using
BTREE
(
y
))
type
=
heap
;
insert
into
t1
values
(
1
,
1
),(
2
,
2
),(
1
,
3
),(
2
,
4
),(
2
,
5
),(
2
,
6
);
explain
select
*
from
t1
where
x
=
1
;
select
*
from
t1
where
x
=
1
;
select
*
from
t1
,
t1
as
t2
where
t1
.
x
=
t2
.
y
;
explain
select
*
from
t1
,
t1
as
t2
where
t1
.
x
=
t2
.
y
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment