<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      基礎語句:

      模糊匹配:
      % 任意字符,_占位符
      like '_t%';

      多字段排序:
      select winner,yr,subject from nobel where winner like 'Sir%' order by yr desc,winner asc
      按照特殊排序,把chemistry,physics排在后面
      select winner,subject from nobel where yr = 1984 order by subject in ('chemistry','physics') ,subject, winner
      limit限制范圍

      select name,population from world
      order by population desc
      limit 3,4
      

      sg:從第4行到第7行的數據

      聚合函數忽略空值

      某個字段包含另外字段 可以用concat+like進行篩選

      高級語句:
      窗口函數、子查詢、表鏈接
      窗口函數相當于把having后面的數據拿去新窗口操作再返回到原表,不影響原表排序
      over([partition by xxx] order by xxx)
      只能寫在select里面,而且分區不去重

      sg:
      SELECT name, DATE_FORMAT(whn,'%Y-%m-%d'), confirmed,lag(confirmed,1)over(partition by name order by whn),(confirmed-lag(confirmed,1)over(partition by name order by whn)) new1 FROM covid WHERE name = 'Italy' AND WEEKDAY(whn) = 0 ORDER BY whn
      計算一周的新增人數 = 這下周(周一)減這一周周一 間隔7天

      表連接(基于廣義迪卡爾積篩選):
      內連接 from 表1 join 表2 on 字段名=字段名
      左右連接 left join and right join

      SELECT mdate,team1,sum(case when team1=teamid then 1 else 0 end) score1 ,team2,sum(case when team2=teamid then 1 else 0 end) score2 from game ga left join goal go on ga.id=go.matchid group by mdate,team1,team2 order by mdate,matchid, team1 and team2
      統計同場比賽球隊的進球情況

      子查詢:
      from 子查詢要起別名

      sg:select name,continent,population from world where continent not in ( select distinct continent from world where population>25000000)

      select name,continent,population from world where continent in( select continent from world group by continent having max(population)<= 25000000)
      求洲里面所有國家的人口數小于等于25000000,只要排除洲里面包含的國家有超過這個數的就好

      `select continent,name,area
      from(
      select continent,name,
      area,rank()over(partition by continent order by area desc) position
      from world
      order by name) as r

      where r.position =1 select continent,name,area
      from world
      where (continent,area) in (
      select continent,max(area)
      from world
      group by continent
      )
      `
      查詢每個洲里面面積最大的國家

      posted on 2024-09-10 23:37  HelloJacker  閱讀(30)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 99精品人妻少妇一区二区| 最新精品国偷自产在线美女足| 亚洲成在人线在线播放无码| 性色av无码不卡中文字幕| 香港日本三级亚洲三级| 亚洲国产精品人人做人人爱| 亚洲av综合久久成人网| 人妻精品中文字幕av| 午夜成人鲁丝片午夜精品| 国产精品永久久久久久久久久 | 精品久久久久久成人AV| 国产精品三级一区二区三区| 久久无码中文字幕免费影院蜜桃| 亚洲av无码一区二区三区网站| 亚洲中文字幕无码久久精品1 | 色欲天天婬色婬香综合网| 成人做爰视频www| 免费看的日韩精品黄色片| 国产精品亚洲综合久久小说| 亚洲色欲色欲www在线看| 改则县| 亚洲婷婷综合色高清在线 | 亚洲V天堂V手机在线| 四虎在线永久免费看精品| 国产91精品调教在线播放| 亚洲国产一区二区三区最新| 国产精品老熟女乱一区二区 | 亚洲最大日韩精品一区| 亚洲自拍精品视频在线| 日韩国产精品中文字幕| 国产久免费热视频在线观看| 国产精品久久久久久亚洲色| 久久久国产精品VA麻豆| 婷婷综合缴情亚洲| 鹤壁市| 中文国产不卡一区二区| 国产亚洲av手机在线观看| 国产极品嫩模在线观看91| 成人午夜免费无码视频在线观看| 精品一区二区三区无码视频 | 另类 亚洲 图片 激情 欧美|