How to get specific row count in Java from Object DB ?
I need to get result for query like :
SELECT COUNT(id) FROM Users WHERE banned=true
Try using * as field:
SELECT COUNT(*) as count FROM Users WHERE banned = false
OrientDB does support SQL like queries and also supports the count(<field>|*)
function according to the documentation: http://code.google.com/p/orient/wiki/SQLWhere#Functions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With