select id,id_type from test
结果:
id id_type
—————–
1 01
2 01
3 02
4 03
5 04
any的用法: any操作符将一个值与某个列表中的任何值进行比较
select id,id_type from test where id > any(2,3,4);
结果:
id id_type
———–
3 02
4 03
5 04
all的用法: all操作符将一个值与某个列表中的所有值进行比较。
select id,id_type from test where id > all(2,3,4);
id id_type
————–
5 04