Optimize : Get data between datepart(year,currentdate) and current date

前端 未结 0 1766
野性不改
野性不改 2020-12-01 03:26

Want to get data between datepart(year,currentdate) and current date

select * from #table view where asofdate between datepart(year,\'2020-11-30\') and \'2020-11-30\'

相关标签:
回答
  • 消灭零回复
提交回复
热议问题