zoukankan      html  css  js  c++  java
  • ACCESS中按日期统计数据

    --按年  
      select   *   from   表名   where   format(字段名,"yyyy")=你输入的年份  
       
      --按月  
      select   *   from   表名   where   format(字段名,"mm")=你输入的月份  
       
      --按年月,注意你的年月要转换为200606类似的格式  
      select   *   from   表名   where   format(字段名,"yyyymm")=你输入的年月  
       
      --或者直接用year()、Month()函数。  
       
      select   *   from   表名   where   year(字段名)=你输入的年   and   month(字段名)=你输入的月

  • 相关阅读:
    购物网站被p.egou.com强制恶意劫持
    css下拉菜单
    StringToInt
    JframeMaxSize
    frameMaxSize
    inputChar
    英语要求
    sciAndSubject
    fileRename
    tensorflowOnWindows
  • 原文地址:https://www.cnblogs.com/wenming205/p/1339834.html
Copyright © 2011-2022 走看看