mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 02:30:06 +01:00
044cbe42ac
include/mysqld_error.h: simple subselects libmysqld/Makefile.am: simple subselects sql/Makefile.am: simple subselects sql/item.h: simple subselects sql/item_strfunc.h: simple subselects sql/share/czech/errmsg.txt: simple subselects sql/share/danish/errmsg.txt: simple subselects sql/share/dutch/errmsg.txt: simple subselects sql/share/english/errmsg.txt: simple subselects sql/share/estonian/errmsg.txt: simple subselects sql/share/french/errmsg.txt: simple subselects sql/share/german/errmsg.txt: simple subselects sql/share/greek/errmsg.txt: simple subselects sql/share/hungarian/errmsg.txt: simple subselects sql/share/italian/errmsg.txt: simple subselects sql/share/japanese/errmsg.txt: simple subselects sql/share/korean/errmsg.txt: simple subselects sql/share/norwegian-ny/errmsg.txt: simple subselects sql/share/norwegian/errmsg.txt: simple subselects sql/share/polish/errmsg.txt: simple subselects sql/share/portuguese/errmsg.txt: simple subselects sql/share/romanian/errmsg.txt: simple subselects sql/share/russian/errmsg.txt: simple subselects sql/share/slovak/errmsg.txt: simple subselects sql/share/spanish/errmsg.txt: simple subselects sql/share/swedish/errmsg.txt: simple subselects sql/share/ukrainian/errmsg.txt: simple subselects sql/sql_class.cc: simple subselects sql/sql_class.h: simple subselects sql/sql_lex.cc: simple subselects sql/sql_select.cc: simple subselects sql/sql_select.h: simple subselects sql/sql_union.cc: simple subselects sql/sql_yacc.yy: simple subselects
18 lines
642 B
Text
18 lines
642 B
Text
|
|
#select (select 2);
|
|
drop table if exists t1,t2,t3,t4;
|
|
create table t1 (a int);
|
|
create table t2 (a int, b int);
|
|
create table t3 (a int);
|
|
create table t4 (a int, b int);
|
|
insert into t1 values (2);
|
|
insert into t2 values (1,7),(2,7);
|
|
insert into t4 values (4,8),(3,8),(5,9);
|
|
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)
|
|
union (select * from t4 order by a limit 2) limit 3;
|
|
drop table t1,t2,t3,t4;
|