登记日期是年月日的格式,有没有[登记日期]的month属性判断是1月还是其他月?
2条回答 默认 最新
threenewbee 2016-01-23 14:19关注where datepart(year,字段) = 2016 and datepart(month,字段) = 1
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
登记日期是年月日的格式,有没有[登记日期]的month属性判断是1月还是其他月?
where datepart(year,字段) = 2016 and datepart(month,字段) = 1