题解 | 支付间隔平均值

支付间隔平均值

https://www.nowcoder.com/practice/847431ad931e45348eb1ab5657144c28

select CAST(round(avg(abs(timestampdiff(second,a.logtime, b.logtime))),0) as signed) AS gap
from order_log as a left join select_log as b on a.order_id = b.order_id


全部评论
为什么round(,0)不行,还需要添加cast呢?
点赞 回复 分享
发布于 2025-04-13 17:19 上海

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务