mysql的utf8和utf8mb4关联查询失效问题
user_limit_consume_record的total_order_id的编码是utf8mb4,而totalorder表的TotalOrderId编码是utf8编码,导致查询不走索引,索引失效,查询很慢
select * from user_limit_consume_record u left join totalorder t on u.total_order_id = t.TotalOrderId;
新增字段指定utf8mb4编码
共有 0 条评论