查询最近10天要过生日的会员
表: base_user(会员)
字段: uid(会员id)/birthday(生日)/mobile(手机号)
数据库:sqlserver2000
select * from base_user where right(convert(varchar(10),birthday,20),5) >= right(convert(varchar(10),getdate(),20),5) and right(convert(varchar(10),birthday,20),5) < right(convert(varchar(10),dateadd(day,10,getdate()),20),5) order by birthday