https://img2020.cnblogs.com/blog/1101843/202010/1101843-20201029092119794-1182278230.jpg

支付宝

https://img2020.cnblogs.com/blog/1101843/202010/1101843-20201029091740174-1560674849.png

微 信

ORACLE常用SQL

 

查询最大得分

select score, id
  from MY_TABLE
 where total_score = (select max(score) from MY_TABLE)

 查询最大得分

select t1.score,t1.id from MY_TABLE t1
left join (select max(score) as score from MY_TABLE) t2
on t1.score = t2.score
where t2.score is not null

 

posted @ 2021-04-02 15:55  huangwanlin  阅读(30)  评论(0编辑  收藏  举报
Copyright 2012-2021 林云希科技有限责任公司