mysql 常用函数

1.字符函数

length
concat
substr

instr
trim
upper
lower

lpad
rpad
replace

2.数学函数

round

ceil

floor

truncate  截断

mod    取余

3.日期函数

now

curdate

curtime

str_to_date

date_format

4.其它函数

if

case

原文地址:https://www.cnblogs.com/mm163/p/10812034.html