Mysql知识总结

操作符

2019-04-03  本文已影响0人  你好旧时光912

①比较大小

<   >   <=   >=  =

②确定集合

in    not in

③确定范围

between   and

④字符串匹配

like%婷%

⑤空值

null:什么都没有

''、' '、" "、""、0都是值

⑥多重条件查询

and/or

⑦聚合函数

count(*)、count(distinct sno)

max()、min()

sum()

上一篇 下一篇

猜你喜欢

热点阅读