mysql可以指定select 后面的字段
mongo 通过java 怎么实现该功能 比如我要根据c_oid得到c_title java代码怎么写?
ringa_lee2017-04-18 10:27:29
It’s just a normal query, please refer to the official documentation.
PHPz2017-04-18 10:27:29
It’s very detailed here
http://mongodb.github.io/mong...
For example, fields include below contains the fields you want to return
collection.find(eq("c_oid", "****"))
.projection(fields(include("c_title"), excludeId()));