group by 要求列字段必须是聚合计算,上述语句包含 other 字段是非聚合的,因此报错。
可以用 context by 替代 group by 做分组计算,可以参考下述脚本:
select * from t context by name csort value desc limit 1
group by 要求列字段必须是聚合计算,上述语句包含 other 字段是非聚合的,因此报错。
可以用 context by 替代 group by 做分组计算,可以参考下述脚本:
select * from t context by name csort value desc limit 1