当前位置:网站首页>SQL中空值的判断
SQL中空值的判断
2022-06-26 06:37:00 【The code family】
在创建表时,可以指定的列是否可以不包含值,如果在一个列不包含值,则其称其为空值NULL。NULL一个特殊值,代表缺失的值或者不适用的情况,表示未知数据。NULL与字段包含0、空字符串或仅仅包含空格不同。
对NULL值进行比较常规的运算,结果总是返回未知,因此需要用特殊的运算符(画线部分IS [NOT] NULL)。
SELECT column1,
column2,
...
FROM table
WHERE column IS [NOT] NULL
标签:MySQL
边栏推荐
- Everything is a vector. The service practice of iqiyi online vector recall project
- 【微服务系列】Protocol buffer动态解析
- Past events of Xinhua III
- 自顶向下的变成方法
- Reasons why MySQL indexes are not effective
- zip(*arg)的用法
- PyTorch混合精度原理及如何开启该方法
- Gof23 - factory mode
- When vs code uses prettier to format JS, there is a space between the name of the function definition and the parentheses, and ESLIt does not allow this space
- [spark] how to implement spark SQL field blood relationship
猜你喜欢

Closure problem C Lua

Open source demo| you draw and I guess -- make your life more interesting

遇到女司机业余开滴滴,日入500!

MySQL 数据库的小白安装与登录

Live broadcast Preview - fire safety instructor training "cloud class" is about to start!

Transaction and message semantics

Decision tree learning notes

Number of connections server database message: error number 2003can't connect to MySQL server on 'server address' (10061)
Customer Stories | Netease spring breeze: the "spring breeze" of the fun industry, reaching out to all areas through in-depth interaction
How can an enterprise successfully complete cloud migration?
随机推荐
js-下载图片
Simple use of enum type in TS
Jasminum plug-in of Zotero document management tool
typescript的type
【golang】time相关
Everything is a vector. The service practice of iqiyi online vector recall project
Thinking and summary of technical ability
Container with the most water
SQL基础
Decompile Android applications, interview Android
Research Report on market supply and demand and strategy of natural organic beauty industry in China
Differences, advantages and disadvantages between synchronous communication and asynchronous communication
Install pyinstaller
Marketing skills: compared with the advantages of the product, it is more effective to show the use effect to customers
在公司逮到一个阿里10年的测试开发,聊过之后大彻大悟...
Gof23 - prototype mode
Efk upgrade to Clickhouse log storage practice
MYSQL触发器要如何设置,简单教程新手一看就会
我在腾讯做测试的这几年...
Format one insert per line using mysqldump- Using mysqldump to format one insert per line?