mysql进阶
1.union 连表
2.(case
when then
when then
else
end) 语法
3.模糊搜索 like ‘M%’
4. 函数 mod(ss,3) left(ss,2),upper(s),right(ss,2),lower(s),concat(s1,s2),length(s),round(s,2)
5. group by 的函数 sum() max() min() count() group_conncat()
6.时间相关 时间差:DATEDIFF(w2.recordDate, w1.recordDate)
7. 窗口函数 sum() rank()
8.DATE_FORMAT(trans_date, '%Y-%m') AS month 计算月份

浙公网安备 33010602011771号