V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  ZanderNg  ›  全部回复第 1 页 / 共 1 页
回复总数  2
2020-12-30 14:34:34 +08:00
回复了 liquorppp 创建的主题 MySQL 构建 SQL 查询语句的疑问
select t1.*
from (select t.a,
t.b,
t.c,
row_number() over(partition by t.a order by to_number(b)) as rank
from tgxt.test_a t
where t.c is not null) t1
where rank = 1
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   768 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 20:28 · PVG 04:28 · LAX 13:28 · JFK 16:28
Developed with CodeLauncher
♥ Do have faith in what you're doing.