时间:2021-07-01 10:21:17 帮助过:172人阅读
select * from people p where substr(p.idcard,11,2) = DATE_FORMAT(NOW(),‘%m‘);
查询price一样的人数
select * from people where price in (select price from people group by price having count(*)>1);
上面这段sql的性能有很大的局限性
select price from people group by price having count(*)>1
上面这段代码的意思是以price为一组,结果大于1的price
【sql】之使用sql根据身份证查询过生日人数
标签:img bsp from font count png 多少 _for src