当前位置:网站首页>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
边栏推荐
- 红队第8篇:盲猜包体对上传漏洞的艰难利用过程
- Advantages, values and risks of chain games compared with traditional games
- How to solve the keyboard key failure of notebook computer
- How to restore the system with one click on Lenovo laptop
- P2893 [USACO08FEB] Making the Grade G(dp&优先队列)
- Virtual serial port simulator and serial port debugging assistant tutorial "suggestions collection"
- ssm框架原理
- 瑞典公布决定排除华为5G设备,但是华为已成功找到新出路
- Why is the pkg/errors tripartite library more recommended for go language error handling?
- IM即时通讯开发万人群聊消息投递方案
猜你喜欢
Kali install Nessus
Tutorial on the principle and application of database system (003) -- MySQL installation and configuration: manually configure MySQL (Windows Environment)
数据库系统原理与应用教程(002)—— MySQL 安装与配置:MySQL 软件的卸载(windows 环境)
Buuctf gold III
嗨 FUN 一夏,与 StarRocks 一起玩转 SQL Planner!
博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”
【Hot100】20. Valid parentheses
独家消息:阿里云悄然推出RPA云电脑,已与多家RPA厂商开放合作
VMware 虛擬機啟動時出現故障:VMware Workstation 與 Hyper-v 不兼容...
[observation] where is the consulting going in the digital age? Thoughts and actions of softcom consulting
随机推荐
Leetcode 216 combined summation III -- backtracking method
Research on multi model architecture of ads computing power chip
P2592 [ZJOI2008]生日聚会(dp)
嗨 FUN 一夏,与 StarRocks 一起玩转 SQL Planner!
In the era of super video, what kind of technology will become the base?
Go 语言怎么优化重复的 if err != nil 样板代码?
Virtual serial port simulator and serial port debugging assistant tutorial "suggestions collection"
[JetsonNano] [教程] [入门系列] [三] 搭建TensorFlow环境
Apple's self-developed baseband chip failed again, which shows Huawei Hisilicon's technological leadership
Golang爬虫框架初探
剑指 Offer II 015. 字符串中的所有变位词
数据库系统原理与应用教程(005)—— yum 离线安装 MySQL5.7(Linux 环境)
数据库系统原理与应用教程(004)—— MySQL 安装与配置:重置 MySQL 登录密码(windows 环境)
UML旅游管理系统「建议收藏」
Endeavouros mobile hard disk installation
软件工程导论——第六章——详细设计
Do280 management application deployment - pod scheduling control
今天14:00 | 港大、北航、耶鲁、清华、加大等15位ICLR一作讲者精彩继续!
Vscode find and replace the data of all files in a folder
IM即时通讯开发万人群聊消息投递方案