询出所有在距离今天一个星期内过生日的数据记录。
select Birthday from table  where convert(datetime,convert(varchar,year(getdate())) + substring(convert(varchar,Birthday,120),5,6)) between getdate() and dateadd(day,7,getdate()) 

 

相关文章:

  • 2021-11-05
  • 2021-12-25
  • 2021-10-18
  • 2021-04-11
  • 2022-12-23
  • 2021-06-28
  • 2022-03-02
猜你喜欢
  • 2021-09-18
  • 2022-12-23
  • 2021-12-26
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案