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