开发者

Using sum(), count(), and "group by" in Berkeley DB

开发者 https://www.devze.com 2023-02-14 04:23 出处:网络
Ho开发者_如何转开发w do I use sum(), count(), and group by in Berkeley DB? Is there any alternative way?Which API are you using? If you\'re using the key/value API, then you will need to implement tho

Ho开发者_如何转开发w do I use sum(), count(), and group by in Berkeley DB? Is there any alternative way?


Which API are you using? If you're using the key/value API, then you will need to implement those functions yourself, essentially by scanning the database using a cursor. If you are using the SQL API, then you can simply do a "SELECT sum(), count() ... GROUP BY ..." SQL statement.

You may want to post questions like this to the Berkeley DB forum.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号