标签:sp on bs nbsp sql br mysql rom it
select count(*),t1.`name` from test_id t1
INNER JOIN test_id t2
on t1.id >= t2.id
group by t1.id,t1.`name`
HAVING count(*) < t1.id
order by t1.id
limit 1;
select * from test_id;
表结构看上一篇
标签:sp on bs nbsp sql br mysql rom it
原文地址:http://www.cnblogs.com/si812cn/p/4166848.html