mirror of
https://github.com/MariaDB/server.git
synced 2025-07-17 12:02:09 +03:00
37 lines
677 B
Plaintext
37 lines
677 B
Plaintext
create table t1 (a int, b int);
|
|
|
|
insert into t1 values (1,2),(4,6),(9,7),(1,1),(2,5),(7,8);
|
|
|
|
values (1,2);
|
|
|
|
select 1,2 union values (1,2);
|
|
|
|
values (1,2) union select (1,2);
|
|
|
|
values (1,2), (3,4) union select 1,2;
|
|
|
|
select * from t1 where (t1.a,t1.b) in (select 5,7 union values (1,2),(2,3));
|
|
|
|
select * from t1 where (t1.a,t1.b) in (values (1,2),(2,3) union select 5,7);
|
|
|
|
let $drop_view= drop view v1;
|
|
|
|
create view v1 as values (1,2);
|
|
|
|
eval $drop_view;
|
|
|
|
create view v1 as values (1,2) union select 3,4;
|
|
|
|
eval $drop_view;
|
|
|
|
create view v1 as select 1,2 union values (3,4);
|
|
|
|
eval $drop_view;
|
|
|
|
create view v1 as select 1,2 union values (3,4),(5,6);
|
|
|
|
eval $drop_view;
|
|
|
|
drop table t1;
|
|
|