想要在数据过滤的时候,月份是当前月份 SELECT realAmount,planAmount,planDate FROM [dbo].[tb_PP_PlanDetail],[dbo].[tb_PP_Plan] where [dbo].[tb_PP_Plan].planID=[dbo].[tb_PP_PlanDetail].planID and datepart(yyyy,planDate)='2013' and datepart(MM,planDate)='month(now())' |
立即参与
