摘要: 背景 客户报告了一个count(distinct)语句返回结果错误,实际结果存在值,但是用count(distinct)统计后返回的是0。 将问题简化后复现如下,影响已知的所有版本。drop table if exists tb;set tmp_table_size=1024;create table tb(id int auto_increment primary key, v varchar(32)) charset=gbk;insert into tb(v) values("aaa");insert into tb(v) (select v from tb);inse 阅读全文
posted @ 2013-11-18 09:12 kaka100 阅读(846) 评论(0) 推荐(1) 编辑