mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
limit clause fixed
This commit is contained in:
@ -36,4 +36,8 @@ a b
|
||||
1 7
|
||||
2 7
|
||||
3 8
|
||||
select (select a from t3 where a<t2.a*4 order by 1 desc limit 1), a from t2;
|
||||
(select a from t3 where a<t2.a*4 order by 1 desc limit 1) a
|
||||
3 1
|
||||
7 2
|
||||
drop table t1,t2,t3,t4;
|
||||
|
@ -14,7 +14,10 @@ select (select a from t1), a from t2;
|
||||
select (select a from t3), a from t2;
|
||||
select * from t2 where t2.a=(select a from t1);
|
||||
insert into t3 values (6),(7),(3);
|
||||
select * from t2 where t2.b=(select a from t3 order by 1 limit 1);
|
||||
select * from t2 where t2.b=(select a from t3 order by 1 limit 1)
|
||||
select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1);
|
||||
select * from t2 where t2.b=(select a from t3 order by 1 desc limit 1)
|
||||
union (select * from t4 order by a limit 2) limit 3;
|
||||
select (select a from t3 where a<t2.a*4 order by 1 desc limit 1), a from t2;
|
||||
select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
|
||||
(select * from t2 where a>1) as tt;
|
||||
drop table t1,t2,t3,t4;
|
||||
|
Reference in New Issue
Block a user