1.字符串连接函数
CONCAT(str1,str2,…)
如: concat('第','room_num','间') 结果:第1间,第2间...
如:
使用CONCAT()函数
mysql向表中某字段后追加一段字符串(field为字段名):
update table_name set field=CONCAT(field,'str',)
mysql 向表中某字段前加字符串
update table_name set field=CONCAT('str',field)
2.查询某个指定日期数据
SELECT * FROM sys_user WHERE YEAR(create_date)='2019' AND MONTH(create_date)='9' AND DAY(create_date)='12'