1.函数的分类?经常使用的函数有哪些?

lower
upper
substr
length
trim(去首尾空格,不会去除中间的空格)
str_to_date(%Y-%m-%d)
date_format
format(保留小数)
round
rand()随机数
ifnull(如果为空,则替换为0)
聚合函数/分组函数
分组函数自动忽略空值
count
sum
avg
min
max

posted @ 2024-12-13 15:18  似梦亦非梦  阅读(11)  评论(0)    收藏  举报