当前位置:网站首页>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
边栏推荐
- Vscode find and replace the data of all files in a folder
- In the era of super video, what kind of technology will become the base?
- 挖财学堂班主任给的证券账户安全吗?能开户吗?
- 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
- Installation and use of sqoop
- Uncover the "intelligence tax" of mousse: spend 4billion on marketing, and only 7 invention patents
- Leetcode 77 combination -- backtracking method
- SQLServer查询: a.id与b.id相同时,a.id对应的a.p在b.id对应的b.p里找不到的话,就显示出这个a.id和a.p
- 红队第10篇:coldfusion反序列化过waf改exp拿靶标的艰难过程
- 数据库系统原理与应用教程(005)—— yum 离线安装 MySQL5.7(Linux 环境)
猜你喜欢
Talking from mlperf: how to lead the next wave of AI accelerator
Zhou Shaojian, rare
普通二本,去过阿里外包,到现在年薪40W+的高级测试工程师,我的两年转行心酸经历...
How to solve the problem that the battery icon of notebook computer does not display
[nodemon] app crashed - waiting for file changes before starting... resolvent
今天14:00 | 港大、北航、耶鲁、清华、加大等15位ICLR一作讲者精彩继续!
Guide for high-end programmers to fish at work
Apple's self-developed baseband chip failed again, which shows Huawei Hisilicon's technological leadership
Research on multi model architecture of ads computing power chip
为国产数据库添砖加瓦,StoneDB 一体化实时 HTAP 数据库正式开源!
随机推荐
数据库系统原理与应用教程(003)—— MySQL 安装与配置:手工配置 MySQL(windows 环境)
【flask入门系列】Cookie与Session
Submission lottery - light application server essay solicitation activity (may) award announcement
Zabbix2.2监控之系统及应用日志监控报警
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
Sqlserver query: when a.id is the same as b.id, and the A.P corresponding to a.id cannot be found in the B.P corresponding to b.id, the a.id and A.P will be displayed
StoneDB 为国产数据库添砖加瓦,基于 MySQL 的一体化实时 HTAP 数据库正式开源!
Principle of SSM framework
Tutorial on the principle and application of database system (002) -- MySQL installation and configuration: MySQL software uninstallation (Windows Environment)
Problèmes rencontrés dans le développement de la GI pour maintenir le rythme cardiaque en vie
sql刷题586. 订单最多的客户
China's intelligent transportation construction from the perspective of "one hour life circle" in Dawan District
FPN网络详解
EndeavourOS移动硬盘安装
Stegano in the world of attack and defense
博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”
How to use F1 to F12 correctly on laptop keyboard
Activity的生命周期和启动模式详解
Endeavouros mobile hard disk installation
IM即时通讯开发实现心跳保活遇到的问题