1、 find_in_set()
FIND_IN_SET(str,strlist),该函数的作用是查询字段(strlist) 中是否包含(str)的结果,返回结果为 null或记录 。
str 要查询的字符串
strlist 需查询的字段,参数以”,”分隔,形式如 (1,2,6,8,10,22)
2.date_format(date, format):
date参数是合法的日期,format参数是规定日期输出的格式。
eg:date_format(create_time,‘%y%m%d’)
3.concat(‘%’, #{name}, ‘%’)
拼接字符串
4.cast()
函数用于将某种数据类型的表达式显式转换为另一种数据类型。
eg: cast(id as char)