📄 subquery2.out
字号:
I |S |C |VC |B -----------------------------------------------------------------------------------------------------1 |1 |1 |1 |1 ij> select * from s where b >= ANY (select 1 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------1 |1 |1 |1 |1 ij> select * from s where i > ANY (select 1 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where i > ANY (select -1 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where c > ANY (select '1' from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where b > ANY (select 1 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where i <= ANY (select 1 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where i <= ANY (select -1 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where c <= ANY (select '1' from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where b <= ANY (select 1 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where i < ANY (select 1 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 ij> select * from s where i < ANY (select -1 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where c < ANY (select '1' from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 ij> select * from s where b < ANY (select 1 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 ij> -- constants on both sidesselect * from s where 1 = ANY (select 0 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where 0 = ANY (select 0 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------NULL |NULL |NULL |NULL |NULL 0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where 1 <> ANY (select 0 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------NULL |NULL |NULL |NULL |NULL 0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where 0 <> ANY (select 0 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where 1 >= ANY (select 0 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------NULL |NULL |NULL |NULL |NULL 0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where 0 >= ANY (select 0 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------NULL |NULL |NULL |NULL |NULL 0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where 1 > ANY (select 0 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------NULL |NULL |NULL |NULL |NULL 0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where 0 > ANY (select 0 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where 1 <= ANY (select 0 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where 0 <= ANY (select 0 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------NULL |NULL |NULL |NULL |NULL 0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where 1 < ANY (select 0 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where 0 < ANY (select 0 from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> -- compatable typesselect * from s where c = ANY (select vc from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where vc = ANY (select c from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where i = ANY (select s from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where s = ANY (select i from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where c <> ANY (select vc from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where vc <> ANY (select c from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where i <> ANY (select s from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where s <> ANY (select i from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where c >= ANY (select vc from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where vc >= ANY (select c from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where i >= ANY (select s from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where s >= ANY (select i from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where c > ANY (select vc from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------1 |1 |1 |1 |1 ij> select * from s where vc > ANY (select c from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------1 |1 |1 |1 |1 ij> select * from s where i > ANY (select s from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------1 |1 |1 |1 |1 ij> select * from s where s > ANY (select i from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------1 |1 |1 |1 |1 ij> select * from s where c <= ANY (select vc from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where vc <= ANY (select c from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where i <= ANY (select s from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where s <= ANY (select i from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where c < ANY (select vc from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where vc < ANY (select c from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where i < ANY (select s from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> select * from s where s < ANY (select i from t);I |S |C |VC |B -----------------------------------------------------------------------------------------------------0 |0 |0 |0 |0 1 |1 |1 |1 |1 ij> -- empty subquery result setselect * from s where i = ANY (select i from t where 1 = 0);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where i <> ANY (select i from t where 1 = 0);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where i >= ANY (select i from t where 1 = 0);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where i > ANY (select i from t where 1 = 0);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where i <= ANY (select i from t where 1 = 0);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> select * from s where i < ANY (select i from t where 1 = 0);I |S |C |VC |B -----------------------------------------------------------------------------------------------------ij> -- subquery under an orselect i from s where i = -1 or i = ANY (select i from t);I -----------0 1 ij> select i from s where i = 0 or i = ANY (select i from t where i = -1);I -----------0 ij> select i from s where i = -1 or i = ANY (select i from t where i = -1 or i = 1);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -