datediff(max(fdate),min(fdate))+1 as days这里用max(num)-min(num)+1就可以,这种方法更妙,当然你的好理解
点赞

相关推荐

点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务