mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	BitKeeper/etc/ignore: Added client/decimal.c client/my_decimal.cc client/my_decimal.h to the ignore list
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| drop table if exists t1,t2;
 | |
| select 0<=>0,0.0<=>0.0,0E0=0E0,"A"<=>"A",NULL<=>NULL;
 | |
| 0<=>0	0.0<=>0.0	0E0=0E0	"A"<=>"A"	NULL<=>NULL
 | |
| 1	1	1	1	1
 | |
| select 1<=>0,0<=>NULL,NULL<=>0;
 | |
| 1<=>0	0<=>NULL	NULL<=>0
 | |
| 0	0	0
 | |
| select 1.0<=>0.0,0.0<=>NULL,NULL<=>0.0;
 | |
| 1.0<=>0.0	0.0<=>NULL	NULL<=>0.0
 | |
| 0	0	0
 | |
| select "A"<=>"B","A"<=>NULL,NULL<=>"A";
 | |
| "A"<=>"B"	"A"<=>NULL	NULL<=>"A"
 | |
| 0	0	0
 | |
| select 0<=>0.0, 0.0<=>0E0, 0E0<=>"0", 10.0<=>1E1, 10<=>10.0, 10<=>1E1;
 | |
| 0<=>0.0	0.0<=>0E0	0E0<=>"0"	10.0<=>1E1	10<=>10.0	10<=>1E1
 | |
| 1	1	1	1	1	1
 | |
| select 1.0<=>0E1,10<=>NULL,NULL<=>0.0, NULL<=>0E0;
 | |
| 1.0<=>0E1	10<=>NULL	NULL<=>0.0	NULL<=>0E0
 | |
| 0	0	0	0
 | |
| 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;
 | |
| id	value	id	value	t1.value<=>t2.value
 | |
| 1	NULL	1	NULL	1
 | |
| select * from t1 where id <=>id;
 | |
| id	value
 | |
| 1	NULL
 | |
| select * from t1 where value <=> value;
 | |
| id	value
 | |
| 1	NULL
 | |
| select * from t1 where id <=> value or value<=>id;
 | |
| id	value
 | |
| drop table t1,t2;
 |