mongodb查询子集

where['$or']  = [{'key':{"$regex":r"^.*" + key + ".*$"}},{'ycname':{"$regex":r"^.*" + key + ".*$"}},{'name':{"$regex":r"^.*" + key + ".*$"}},{'package.package':{"$regex":r"^.*" + key + ".*$"}}]

阅读更多

没有更多推荐了,返回首页