![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
TTTiaotiao
这个作者很懒,什么都没留下…
展开
-
MySQL中的唯一约束可以为空
如果有多个列设置了唯一约束,那么这几个列的内容都可以为空 create table test1( id varchar(10) primary key, name varchar(10) unique, sex varchar(5) unique ); insert into test1 values(1,null,null); insert into test1 values...原创 2019-08-09 09:49:32 · 5139 阅读 · 0 评论 -
MySQL查询奖金为NULL的员工信息
is null 专门针对null值进行筛选 示例: 查询所有奖金是null的员工信息 不能使用comm = null查询,这样查询没有结果原创 2019-08-09 18:00:45 · 5482 阅读 · 0 评论