sql:
select id,saledate from table where (??)  --取出当前用的记录谢谢

解决方案 »

  1.   

    不好意思是
    sql:
    select id,saledate from table where (??)  --取出当前月的记录如:如果今天查也就是查出所有2007年2月的记录
    谢谢
      

  2.   

    select id,saledate from table where convert(char(7),saledate,120) = convert(char(7),getdate(),120)
      

  3.   

    select id,saledate from table where year(saledate)=year(getdate()) and month(saledate)=month(getdate())
      

  4.   

    zyciis125() 和zyciis124 () 是什么关系?
      

  5.   

    这样不准确,要用where datediff(m,getdate(),saledate)=0