1
drop table if exists t1,t2;
2
select 0<=>0,0.0<=>0.0,0E0=0E0,"A"<=>"A",NULL<=>NULL;
3
0<=>0 0.0<=>0.0 0E0=0E0 "A"<=>"A" NULL<=>NULL
5
select 1<=>0,0<=>NULL,NULL<=>0;
6
1<=>0 0<=>NULL NULL<=>0
8
select 1.0<=>0.0,0.0<=>NULL,NULL<=>0.0;
9
1.0<=>0.0 0.0<=>NULL NULL<=>0.0
11
select "A"<=>"B","A"<=>NULL,NULL<=>"A";
12
"A"<=>"B" "A"<=>NULL NULL<=>"A"
14
select 0<=>0.0, 0.0<=>0E0, 0E0<=>"0", 10.0<=>1E1, 10<=>10.0, 10<=>1E1;
15
0<=>0.0 0.0<=>0E0 0E0<=>"0" 10.0<=>1E1 10<=>10.0 10<=>1E1
17
select 1.0<=>0E1,10<=>NULL,NULL<=>0.0, NULL<=>0E0;
18
1.0<=>0E1 10<=>NULL NULL<=>0.0 NULL<=>0E0
20
create table t1 (id int, value int);
21
create table t2 (id int, value int);
22
insert into t1 values (1,null);
23
insert into t2 values (1,null);
24
select t1.*, t2.*, t1.value<=>t2.value from t1, t2 where t1.id=t2.id and t1.id=1;
25
id value id value t1.value<=>t2.value
27
select * from t1 where id <=>id;
30
select * from t1 where value <=> value;
33
select * from t1 where id <=> value or value<=>id;
36
create table t1 (a bigint);
37
insert into t1 values (4828532208463511553);
38
select * from t1 where a = '4828532208463511553';
41
select * from t1 where a in ('4828532208463511553');