2003-01-06 00:48:59 +01:00
|
|
|
drop table if exists t1,t2;
|
2001-09-28 07:05:54 +02:00
|
|
|
select 0<=>0,0.0<=>0.0,"A"<=>"A",NULL<=>NULL;
|
2000-12-27 02:31:06 +01:00
|
|
|
0<=>0 0.0<=>0.0 "A"<=>"A" NULL<=>NULL
|
|
|
|
1 1 1 1
|
2001-09-28 07:05:54 +02:00
|
|
|
select 1<=>0,0<=>NULL,NULL<=>0;
|
2000-12-27 02:31:06 +01:00
|
|
|
1<=>0 0<=>NULL NULL<=>0
|
|
|
|
0 0 0
|
2001-09-28 07:05:54 +02:00
|
|
|
select 1.0<=>0.0,0.0<=>NULL,NULL<=>0.0;
|
2000-12-27 02:31:06 +01:00
|
|
|
1.0<=>0.0 0.0<=>NULL NULL<=>0.0
|
|
|
|
0 0 0
|
2001-09-28 07:05:54 +02:00
|
|
|
select "A"<=>"B","A"<=>NULL,NULL<=>"A";
|
2000-12-27 02:31:06 +01:00
|
|
|
"A"<=>"B" "A"<=>NULL NULL<=>"A"
|
|
|
|
0 0 0
|
2001-09-28 07:05:54 +02:00
|
|
|
create table t1 (id int, value int);
|
|
|
|
create table t2 (id int, value int);
|
|
|
|
insert into t1 values (1,null);
|
|
|
|
insert into t2 values (1,null);
|
|
|
|
select t1.*, t2.*, t1.value<=>t2.value from t1, t2 where t1.id=t2.id and t1.id=1;
|
2000-12-27 02:31:06 +01:00
|
|
|
id value id value t1.value<=>t2.value
|
|
|
|
1 NULL 1 NULL 1
|
2001-09-28 07:05:54 +02:00
|
|
|
select * from t1 where id <=>id;
|
2000-12-27 02:31:06 +01:00
|
|
|
id value
|
|
|
|
1 NULL
|
2001-09-28 07:05:54 +02:00
|
|
|
select * from t1 where value <=> value;
|
2000-12-27 02:31:06 +01:00
|
|
|
id value
|
|
|
|
1 NULL
|
2001-09-28 07:05:54 +02:00
|
|
|
select * from t1 where id <=> value or value<=>id;
|
2000-12-27 02:31:06 +01:00
|
|
|
id value
|
2001-09-28 07:05:54 +02:00
|
|
|
drop table t1,t2;
|