一、mysql数据库
1、常用函数:
group_concat():测试语句:SELECT group_concat(town) FROM `players` group by town。 作用是去查找town中去查找哪些值是一样的,如果相等,就全部列出来,以逗号分割进行列出
2、设置mysql的update mode
执行update语句时,可能会报错 You are using safe update mode and you tried to update a table without a WHERE clause that uses a KEY column.”
原因是在safe mode下,要强制安全点,update只能跟where了,要取消这个限制,可以:
SET SQL_SAFE_UPDATES=0