<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Thinkphp使用having查詢重復(fù)的數(shù)據(jù)

          共 402字,需瀏覽 1分鐘

           ·

          2021-06-25 22:35

          having方法只有一個參數(shù),并且只能使用字符串

          例如:

          Db::table('score')    ->field('username,max(score)')    ->group('user_id')    ->having('count(test_time)>3')    ->select();


          生成的SQL語句是:

          SELECT username,max(score) FROM score GROUP BY user_id HAVING count(test_time)>3


          一般having需要group配合同時使用

          瀏覽 146
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  黄色视频免费观看 | 思思热精品在线视频 | 91av在线视频会员 | 国产黄色电影在线免费观看 | 解释www的含义 |