<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 今天 ``` select * from `ht_invoice_information` where year(create_date)=year(date_sub(now(),interval 1 year)); select * from 表名 where to_days(時間字段名) = to_days(now()); ``` ## 昨天 ``` select * from 表名 where to_days( now( ) ) - to_days( 時間字段名) <= 1 ``` ## 近期7天 ``` select * from 表名 where date_sub(curdate(), interval 7 day) <= date(時間字段名) ``` ## 近30天 ``` select * from 表名 where date_sub(curdate(), interval 30 day) <= date(時間字段名) ``` ## 本月 ``` select * from 表名 where date_format( 時間字段名, '%y%m' ) = date_format( curdate( ) , '%y%m' ) ``` ## 上一個月 ``` select * from 表名 where period_diff( date_format( now( ) , '%y%m' ) , date_format( 時間字段名, '%y%m' ) ) =1 ``` ## 查詢本季度 ``` select * from `ht_invoice_information` where QUARTER(create_date)=QUARTER(now()); ``` ## 查詢上季度 ``` select * from `ht_invoice_information` where QUARTER(create_date)=QUARTER(DATE_SUB(now(),interval 1 QUARTER)); ``` ? ## 查詢本年數據 ``` select * from `ht_invoice_information` where YEAR(create_date)=YEAR(NOW()); ``` ## 查詢上年數據 ``` select * from `ht_invoice_information` where year(create_date)=year(date_sub(now(),interval 1 year)); ``` ## 查詢當前這周的數據 ``` SELECT name,submittime FROM enterprise WHERE YEARWEEK(date_format(submittime,'%Y-%m-%d')) = YEARWEEK(now()); ``` ## 查詢上周 ``` SELECT name,submittime FROM enterprise WHERE YEARWEEK(date_format(submittime,'%Y-%m-%d')) = YEARWEEK(now())-1; ``` ?
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看