mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
after merge fix
This commit is contained in:
parent
97354d0699
commit
542440e823
1 changed files with 6 additions and 6 deletions
|
@ -43,8 +43,8 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||||
3 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
|
3 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
|
||||||
2 DERIVED NULL NULL NULL NULL NULL NULL NULL No tables used
|
2 DERIVED NULL NULL NULL NULL NULL NULL NULL No tables used
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1271 Field or reference 'a' of SELECT #3 was resolved in SELECT #1
|
Note 1273 Field or reference 'a' of SELECT #3 was resolved in SELECT #1
|
||||||
Note 1271 Field or reference '.a' of SELECT #3 was resolved in SELECT #1
|
Note 1273 Field or reference 'b.a' of SELECT #3 was resolved in SELECT #1
|
||||||
SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
|
SELECT 1 FROM (SELECT 1 as a) as b HAVING (SELECT a)=1;
|
||||||
1
|
1
|
||||||
1
|
1
|
||||||
|
@ -211,7 +211,7 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||||
2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2
|
2 DEPENDENT SUBQUERY t2 ALL NULL NULL NULL NULL 2
|
||||||
3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 Using where
|
3 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 Using where
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1271 Field or reference 't4.a' of SELECT #3 was resolved in SELECT #1
|
Note 1273 Field or reference 't4.a' of SELECT #3 was resolved in SELECT #1
|
||||||
select * from t3 where exists (select * from t2 where t2.b=t3.a);
|
select * from t3 where exists (select * from t2 where t2.b=t3.a);
|
||||||
a
|
a
|
||||||
7
|
7
|
||||||
|
@ -292,8 +292,8 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||||
2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 1
|
2 DEPENDENT SUBQUERY t1 system NULL NULL NULL NULL 1
|
||||||
3 DEPENDENT UNION t5 ALL NULL NULL NULL NULL 2 Using where
|
3 DEPENDENT UNION t5 ALL NULL NULL NULL NULL 2 Using where
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1271 Field or reference 't2.a' of SELECT #2 was resolved in SELECT #1
|
Note 1273 Field or reference 't2.a' of SELECT #2 was resolved in SELECT #1
|
||||||
Note 1271 Field or reference 't2.a' of SELECT #3 was resolved in SELECT #1
|
Note 1273 Field or reference 't2.a' of SELECT #3 was resolved in SELECT #1
|
||||||
select (select a from t1 where t1.a=t2.a union all select a from t5 where t5.a=t2.a), a from t2;
|
select (select a from t1 where t1.a=t2.a union all select a from t5 where t5.a=t2.a), a from t2;
|
||||||
ERROR 21000: Subselect returns more than 1 record
|
ERROR 21000: Subselect returns more than 1 record
|
||||||
create table t6 (patient_uq int, clinic_uq int, index i1 (clinic_uq));
|
create table t6 (patient_uq int, clinic_uq int, index i1 (clinic_uq));
|
||||||
|
@ -310,7 +310,7 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 PRIMARY t6 ALL NULL NULL NULL NULL 4 Using where
|
1 PRIMARY t6 ALL NULL NULL NULL NULL 4 Using where
|
||||||
2 DEPENDENT SUBQUERY t7 eq_ref PRIMARY PRIMARY 4 test.t6.clinic_uq 1
|
2 DEPENDENT SUBQUERY t7 eq_ref PRIMARY PRIMARY 4 test.t6.clinic_uq 1
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1271 Field or reference 'clinic_uq' of SELECT #2 was resolved in SELECT #1
|
Note 1273 Field or reference 'clinic_uq' of SELECT #2 was resolved in SELECT #1
|
||||||
select * from t1 where a= (select a from t2,t4 where t2.b=t4.b);
|
select * from t1 where a= (select a from t2,t4 where t2.b=t4.b);
|
||||||
ERROR 23000: Column: 'a' in field list is ambiguous
|
ERROR 23000: Column: 'a' in field list is ambiguous
|
||||||
drop table if exists t1,t2,t3;
|
drop table if exists t1,t2,t3;
|
||||||
|
|
Loading…
Add table
Reference in a new issue