func_equal.result
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. drop table if exists t1,t2;
  2. select 0<=>0,0.0<=>0.0,"A"<=>"A",NULL<=>NULL;
  3. 0<=>0 0.0<=>0.0 "A"<=>"A" NULL<=>NULL
  4. 1 1 1 1
  5. select 1<=>0,0<=>NULL,NULL<=>0;
  6. 1<=>0 0<=>NULL NULL<=>0
  7. 0 0 0
  8. select 1.0<=>0.0,0.0<=>NULL,NULL<=>0.0;
  9. 1.0<=>0.0 0.0<=>NULL NULL<=>0.0
  10. 0 0 0
  11. select "A"<=>"B","A"<=>NULL,NULL<=>"A";
  12. "A"<=>"B" "A"<=>NULL NULL<=>"A"
  13. 0 0 0
  14. create table t1 (id int, value int);
  15. create table t2 (id int, value int);
  16. insert into t1 values (1,null);
  17. insert into t2 values (1,null);
  18. select t1.*, t2.*, t1.value<=>t2.value from t1, t2 where t1.id=t2.id and t1.id=1;
  19. id value id value t1.value<=>t2.value
  20. 1 NULL 1 NULL 1
  21. select * from t1 where id <=>id;
  22. id value
  23. 1 NULL
  24. select * from t1 where value <=> value;
  25. id value
  26. 1 NULL
  27. select * from t1 where id <=> value or value<=>id;
  28. id value
  29. drop table t1,t2;