当前位置:网站首页>sql刷题584. 寻找用户推荐人
sql刷题584. 寻找用户推荐人
2022-07-01 16:19:00 【grt要一直一直努力呀】


直观想到下面的sql语句
# Write your MySQL query statement below
select name from customer where referee_id != 2
但查询结果出错,
MySQL 使用三值逻辑 —— TRUE, FALSE 和 UNKNOWN。任何与 NULL 值进行的比较都会与第三种值 UNKNOWN 做比较。
# Write your MySQL query statement below
select name from customer where referee_id != 2 or referee_id is null
边栏推荐
- Why is the pkg/errors tripartite library more recommended for go language error handling?
- Problèmes rencontrés dans le développement de la GI pour maintenir le rythme cardiaque en vie
- SQLServer查询: a.id与b.id相同时,a.id对应的a.p在b.id对应的b.p里找不到的话,就显示出这个a.id和a.p
- 【Hot100】20. Valid parentheses
- Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
- Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
- 红队第8篇:盲猜包体对上传漏洞的艰难利用过程
- OJ questions related to complexity (leetcode, C language, complexity, vanishing numbers, rotating array)
- How to restore the system with one click on Lenovo laptop
- UML旅游管理系统「建议收藏」
猜你喜欢

IM即时通讯开发万人群聊消息投递方案

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

How long will it take to achieve digital immortality? Metacosmic holographic human avatar 8i

【Hot100】19. Delete the penultimate node of the linked list

The Department came to a Post-00 test paper king who took out 25K. The veteran said it was really dry, but it had been

广东用电量大跌,说明高新技术产业替代高能耗产业已取得初步成果

How to use F1 to F12 correctly on laptop keyboard

In the past six months, it has been invested by five "giants", and this intelligent driving "dark horse" is sought after by capital

Tutorial on the principle and application of database system (001) -- MySQL installation and configuration: installation of MySQL software (Windows Environment)

数据库系统原理与应用教程(002)—— MySQL 安装与配置:MySQL 软件的卸载(windows 环境)
随机推荐
怎么用MySQL语言进行行列装置?
VMware 虚拟机启动时出现故障:VMware Workstation 与 Hyper-v 不兼容...
Authentication processing in interface testing framework
为国产数据库添砖加瓦,StoneDB 一体化实时 HTAP 数据库正式开源!
How to solve the keyboard key failure of notebook computer
Go 语言源码级调试器 Delve
软件工程导论——第六章——详细设计
vim用户自动命令示例
FPN network details
独家消息:阿里云悄然推出RPA云电脑,已与多家RPA厂商开放合作
【直播预约】数据库OBCP认证全面升级公开课
制造业数字化转型究竟是什么
The supply of chips has turned to excess, and the daily output of Chinese chips has increased to 1billion, which will make it more difficult for foreign chips
China's intelligent transportation construction from the perspective of "one hour life circle" in Dawan District
Tutorial on principles and applications of database system (006) -- compiling and installing MySQL 5.7 (Linux Environment)
Leetcode 216 combined summation III -- backtracking method
How to optimize repeated if err in go language= Nil template code?
Basic use of MySQL
P2592 [ZJOI2008]生日聚会(dp)
【Hot100】17. 电话号码的字母组合