Eclipse 如何使用Mongo为Birt编写表达式?
我找到了文档页面,上面说我可以编写Eclipse 如何使用Mongo为Birt编写表达式?,eclipse,mongodb,grails,birt,Eclipse,Mongodb,Grails,Birt,我找到了文档页面,上面说我可以编写运行数据库命令表达式,默认命令类型是FindQuery。如何编写FindQuery表达式。在“编辑数据集”窗口中选择“$query expression”按钮。然后键入所需的查找查询。。。例如,如果从加载MongoDB示例数据库 您可以执行查找查询,例如: { pop: { $gte: 15000 } } 这将搜索人口大于或等于15000人的所有记录。您还可以运行以下一些查找查询: { state: { $in: ["WA", "OR" ] } } //fi
运行数据库命令表达式
,默认命令类型是FindQuery
。如何编写FindQuery表达式。在“编辑数据集”窗口中选择“$query expression”按钮。然后键入所需的查找查询。。。例如,如果从加载MongoDB示例数据库
您可以执行查找查询,例如:
{ pop: { $gte: 15000 } }
这将搜索人口大于或等于15000人的所有记录。您还可以运行以下一些查找查询:
{ state: { $in: ["WA", "OR" ] } } //finds all of the cities in WA and OR
{$and: [{ state:"WA" },{ pop: { $gte: 50000 } }]} //finds all of the cities in WA with a population greater than 50,000-