查出属于本月的数据(判断本月有没有数据)

SELECT * FROM gCms_IndicatorFirm WHERE datediff(month,[PostDate],getdate())=0

posted @ 2012-02-20 14:32  红鲤鱼与驴与绿鲤鱼  阅读(192)  评论(1)    收藏  举报