sqlserver查询当月数据

SELECT * FROM table WHERE datediff(month,LoginTime,getdate())=0 ORDER BY LoginTime

SELECT * FROM table WHERE datediff(month,ApproveTime,getdate())=0 ORDER BY ApproveTime

posted @ 2018-12-27 16:54  金虹巴巴  阅读(5654)  评论(0编辑  收藏  举报