1. null值的判断只能用is null和is not null来判断。与其他条件判断不同,不能用 = 和 != 来判断
    例如:看本次缺考的学生信息
select student_id, score from Persoon
where score is null

不能用 “= null”,这样选择数据肯定为空

select student_id, score from Persoon
where score = null

2.日期函数的加减
加天数:dateadd(字段名,加的天数)当日期为字符串格式 ‘2021-03-09’时,dateadd同样适用
减天数:datesub(字段名,减的天数)
两个时间之间的天数差:datediff(date1,date2)
取时间字段的日期部分:to_date(字符串格式日期)-返回结果仍然为字符串
例如,已知购买日期,得到两天后的需付款日期;已知付款日期,得到购买日期;购买日期与付款日期之差;根据付款时间取到付款日期

select orderID, dateadd(orderdate) from orders
select orderID, datesub(paydate) from orders
select datediff(paydate, orderdate) from orders
select to_date(paytime) from orders -- paytime:2016-06-01 12:32:15 返回结果:2016-06-01
                    Count在值是NULL时不统计数:
count('任意内容')都会统计出所有记录数,因为count只有在遇见null时不计数,即count(null)==0,因此前者单引号内不管输入什么值都会统计出所有记录数)
至于加上or NULL, 很像其他编程里的or运算符,第一个表达式是true就是不执行or后面的表达式,第一个表达式是false 执行or后面的表达式 。
                cs231n assignment2 FC 解决python setup.py build_ext --inplace
                    suiuko: 
                    博主你好,当我的电脑上有多个conda环境时,好像会默认使用base环境下的python[code=python]
/LIBPATH:D:\ProgramData\Anaconda3\libs
[/code]如何使用指定环境下的python
                安装Postgresql报错The Database cluster initialisation failed.
                    Myron~mao: 
                    666,完美解决,谢谢大佬
                cs231n assignment2 FC 解决python setup.py build_ext --inplace
                    Sentinel-2烦死: 
                    博主你好,我cython已经安装了,还是出现这个错误