from_unxitime(unix_timestamp, format)
返回Unix时间标记的一个字符串,根据format格式化。如果format为空默认会使用%Y-%m-%d %H:%i:%s的格式
CONCAT(str1,str2,…) 连接字符串
返回结果为连接参数产生的字符串。如有任何一个参数为NULL ,则返回值为 NULL。
distinct 返回不重复字段的条件
DATE_FORMAT() 函数用于以不同的格式显示日期/时间数据。
from_unxitime 时间戳格式化函数 UNIX_TIMESTAMP 则与之相反
find_in_set 查找以逗号分隔的值
case 操作查询结果case when then else end
replace替换函数的用法
REPLACE(str, from_str, to_str)
在字符串 str 中所有出现的字符串 from_str 均被 to_str替换
在thinkPHP中的示例:REPLACE(content, "/Public/Uploads", "'.IMG_PATH.'") AS content
DATE_ADD() 函数向日期添加指定的时间间隔