select record_date, * from staff where datediff(month,record_date,getdate())<=1
record_date是要查的日期
<=1就是要查的日期和当前日期差1
month可改成年,月,日。都可以
select record_date, * from staff where datediff(month,record_date,getdate())<=1
record_date是要查的日期
<=1就是要查的日期和当前日期差1
month可改成年,月,日。都可以