当前位置:网站首页>SQL question brushing 584 Looking for user references
SQL question brushing 584 Looking for user references
2022-07-01 16:45:00 【GRT should always work hard】


Intuitively think of the following sql sentence
# Write your MySQL query statement below
select name from customer where referee_id != 2
But the query result is wrong ,
MySQL Use ternary logic —— TRUE, FALSE and UNKNOWN. Anything to do with NULL Values are compared with the third value UNKNOWN compare .
# Write your MySQL query statement below
select name from customer where referee_id != 2 or referee_id is null
边栏推荐
- What is the effect of choosing game shield safely in the game industry?
- Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
- Why is the pkg/errors tripartite library more recommended for go language error handling?
- Is it reliable to open an account on flush with mobile phones? Is there any potential safety hazard
- How to optimize repeated if err in go language= Nil template code?
- 模板引擎Velocity 基礎
- VMware 虛擬機啟動時出現故障:VMware Workstation 與 Hyper-v 不兼容...
- Comment utiliser le langage MySQL pour les appareils de ligne et de ligne?
- Go language source level debugger delve
- SQLServer查询: a.id与b.id相同时,a.id对应的a.p在b.id对应的b.p里找不到的话,就显示出这个a.id和a.p
猜你喜欢

Motion capture system for apple picking robot

StoneDB 为国产数据库添砖加瓦,基于 MySQL 的一体化实时 HTAP 数据库正式开源!

The sharp drop in electricity consumption in Guangdong shows that the substitution of high-tech industries for high-energy consumption industries has achieved preliminary results

Ring iron pronunciation, dynamic and noiseless, strong and brilliant, magic wave hifiair Bluetooth headset evaluation

你还在用收费的文档管理工具?我这有更牛逼的选择!完全免费

Template Engine Velocity Foundation

独家消息:阿里云悄然推出RPA云电脑,已与多家RPA厂商开放合作

Sweden announced its decision to exclude Huawei 5g equipment, but Huawei has successfully found a new way out

Analysis of PostgreSQL storage structure

Guide for high-end programmers to fish at work
随机推荐
[JetsonNano] [教程] [入门系列] [三] 搭建TensorFlow环境
Golang爬虫框架初探
Bugku's file contains
[SQL statement] Why do you select two Shanghai and query different counts here? I want it to become a Shanghai, and count only displays a sum
vim用户自动命令示例
What are the differences between PHP and DW
P2592 [zjoi2008] birthday party (DP)
红队第10篇:coldfusion反序列化过waf改exp拿靶标的艰难过程
毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?
Stonedb is building blocks for domestic databases, and the integrated real-time HTAP database based on MySQL is officially open source!
Basic use of MySQL
全面看待企业数字化转型的价值
【Hot100】17. Letter combination of telephone number
【直播预约】数据库OBCP认证全面升级公开课
Leetcode 77 combination -- backtracking method
芯片供应转向过剩,中国芯片日产增加至10亿,国外芯片将更难受
FPN网络详解
Is it reliable to open an account on flush with mobile phones? Is there any potential safety hazard
How to repair the laptop that cannot connect to the wireless network
MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一