当前位置:网站首页>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
边栏推荐
- Go 语言错误处理为什么更推荐使用 pkg/errors 三方库?
- P2893 [USACO08FEB] Making the Grade G(dp&优先队列)
- [nodemon] app crashed - waiting for file changes before starting... resolvent
- 博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”
- FPN network details
- IM即时通讯开发实现心跳保活遇到的问题
- 数据库系统原理与应用教程(003)—— MySQL 安装与配置:手工配置 MySQL(windows 环境)
- 挖财学堂班主任给的证券账户安全吗?能开户吗?
- Pico, do you want to save or bring consumer VR?
- SQLServer查询: a.id与b.id相同时,a.id对应的a.p在b.id对应的b.p里找不到的话,就显示出这个a.id和a.p
猜你喜欢
[jetsonnano] [tutorial] [introductory series] [III] build tensorflow environment
数据库系统原理与应用教程(001)—— MySQL 安装与配置:MySQL 软件的安装(windows 环境)
[nodemon] app crashed - waiting for file changes before starting... resolvent
【Hot100】17. 电话号码的字母组合
学会了selenium 模拟鼠标操作,你就可以偷懒点点点了
广东用电量大跌,说明高新技术产业替代高能耗产业已取得初步成果
Buuctf gold III
圈铁发音,动感与无噪强强出彩,魔浪HIFIair蓝牙耳机测评
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
Pico, do you want to save or bring consumer VR?
随机推荐
[nodemon] app crashed - waiting for file changes before starting...解决方法
巴比特 | 元宇宙每日必读:奈雪币、元宇宙乐园、虚拟股票游戏...奈雪的茶这波“操作拉满”的营销活动你看懂了吗?...
sql刷题627. 变更性别
学会了selenium 模拟鼠标操作,你就可以偷懒点点点了
How to cancel automatic search and install device drivers for laptops
How to repair the laptop that cannot connect to the wireless network
软件工程导论——第六章——详细设计
StoneDB 为国产数据库添砖加瓦,基于 MySQL 的一体化实时 HTAP 数据库正式开源!
Authentication processing in interface testing framework
怎麼用MySQL語言進行行列裝置?
Origin2018 installation and use (sorting)
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
苹果自研基带芯片再次失败,说明了华为海思的技术领先性
实现数字永生还有多久?元宇宙全息真人分身#8i
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
【Hot100】19. 删除链表的倒数第 N 个结点
模板引擎Velocity 基礎
全面看待企业数字化转型的价值
[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
sql刷题586. 订单最多的客户