springdata-mongdb怎么写类似于mysql的select count(a) as total order where a=1 order by total

springdata-mongdb怎么写类似于mysql的select count(a) as total order where a=1 order by total,第1张

如何编写类似mysql的select count(a)作为total order where a = 1 order by totalspringdata-mongdb如何编写类似mysql的Select Count (a)作为total order where a = 1 order by total简介:最近需要用mong db查询数据,以前没接触过。框架中使用的springdata mongdb,mongTemplate,如何把select count(a)写成total或者类似于mysql?

欢迎分享,转载请注明来源:聚客百科

原文地址: http://juke.outofmemory.cn/life/1869567.html

()
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-10-02
下一篇 2022-10-02

发表评论

登录后才能评论

评论列表(0条)

保存