一个sql就搞定了吧!
select * from tablename where (year(now())-year(出生时间字段)) between 20 and 30;
学习找方法什么的最好还是自己自行google来的更快些。
贴吧貌似还是更多的用来吐槽的
select * from tablename where (year(now())-year(出生时间字段)) between 20 and 30;
学习找方法什么的最好还是自己自行google来的更快些。
贴吧貌似还是更多的用来吐槽的
