日期部分:select convert(char(10),getdate(),21)
当天数据:select * from content.dbo.akn_rng where datediff(day,adate,getdate())=0
日期转换函数:
DATEADD
DATEDIFF
DATENAME
DATEPART
DAY
GETDATE
GETUTCDATE
MONTH
YEAR
日期部分:select convert(char(10),getdate(),21)
当天数据:select * from content.dbo.akn_rng where datediff(day,adate,getdate())=0
日期转换函数:
DATEADD
DATEDIFF
DATENAME
DATEPART
DAY
GETDATE
GETUTCDATE
MONTH
YEAR