datediff(week,zy_time,getdate())=0 //查询本周 datediff(month,zy_time,getdate())=0 //查询本月 本季:select * from table where datediff(qq,C_CALLTIME,getdate ...
datediff week,zy time,getdate 查询本周 datediff month,zy time,getdate 查询本月 本季:select from table where datediff qq,C CALLTIME,getdate 前半年 ,后半年 :select from table where datepart mm,C CALLTIME datepart mm,ge ...
2016-08-27 09:56 0 12081 推荐指数:
datediff(week,zy_time,getdate())=0 //查询本周 datediff(month,zy_time,getdate())=0 //查询本月 本季:select * from table where datediff(qq,C_CALLTIME,getdate ...
本文主要向大家介绍了SQLServer数据库之SQL Server 获取本周,本月,本年等时间内记录,通过具体的内容向大家展现,希望对大家学习SQLServer数据库有所帮助。 datediff(week,zy_time,getdate())=0 //查询本周datediff(month ...
参数声明 1、查询本日开始、结束时间 2、查询本周开始、结束时间 3、查询本月开始时间、结束时间 4、查询本季度开始、结束时间 5、查询本年度开始时间、结束时间 ...
时间戳格式: 日期格式: ...
本周:select * from table where datediff(week,C_CALLTIME,getdate())=0 --C_CALLTIME 为日期字段本月:select * from table where datediff(Month,C_CALLTIME ...