随笔分类 - mysql
摘要:-- mysql生成uuid select uuid(); -- 替换- select replace(uuid(),'-','');
阅读全文
摘要:-- 服务器时区值“Öйú±ê׼ʱ¼ä”无法识别或表示多个时区。 The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. --查看数据库时区 show va
阅读全文
摘要:-- 分组排序取出每组顺序第一条 select substring_index(group_concat(id order by create_time desc),',',1) from tb_order group by user_id
阅读全文