2020-04-09
阅读量:
1317
Not in 跟 not like 有什么主要区别呢?
比如:
select * from a where id not in(1,2,3); --查找id不在1,2,3中的数据集
select * from a where tt not like "%as%"; --查找tt字段中不包含as字符的数据集
not in 后面一般会跟一个集合,代表要查找的不在这个里面
not like代表没有类似某个字符串的记录






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论