count(*)
count(col)
sum()
avg()
max()
min()
curdate()
curtime()
now()
date_format(date,fmt)
unix_timestamp()
from_unixtime()
datediff(date1,date2) -----------返回相差的天数
timediff(expr1,expr2) -----------返回相隔的时间
concat(str1,str2,…)
concat_ws(sep,str1,str2,…)
group_concat(distinct name)
char_length(str) --------字符个数
length(str) ---------字节个数
substring(str,pos[,len])
ltrim(str)
rtrim(str)
round(x,d) ----------x四舍五入的有y位小数的值
rand()
floor()
ceiling()
truncate(x,y) -----------数字x截短为y位小数的结果
sqrt(x)
mod(x,y)
pow(x,y)
exp(x)
log(x) ------------自然对数
ascii(char) -----------返回字符的ascii码值
bit_length(str) ----------字符串的比特长度
lcase(str) -----------小写
lower(str)
ucase(str) ------------大写
upper(str)
quarter(date)
week(date)
dayofyear(date)
dayofmonth(date)
dayofweek(date)
cast(value as type) ----------数据类型转换函数
version()
connection_id()
database()
schema()
session_user()
system_user()
current_user()
charset(str)
collation(str)
last_insert_id()




