mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge with 4.0.14
This commit is contained in:
@@ -610,3 +610,17 @@ AND file_code = '0000000115' LIMIT 1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t2 const PRIMARY,files PRIMARY 33 const,const 1
|
||||
DROP TABLE t2, t1;
|
||||
create table t1 (x int, y int, index xy(x, y));
|
||||
create table t2 (x int, y int, index xy(x, y));
|
||||
create table t3 (x int, y int, index xy(x, y)) type=merge union=(t1,t2);
|
||||
insert into t1 values(1, 2);
|
||||
insert into t2 values(1, 3);
|
||||
select * from t3 where x = 1 and y < 5 order by y;
|
||||
x y
|
||||
1 2
|
||||
1 3
|
||||
select * from t3 where x = 1 and y < 5 order by y desc;
|
||||
x y
|
||||
1 3
|
||||
1 2
|
||||
drop table t1,t2,t3;
|
||||
|
||||
Reference in New Issue
Block a user