判断俩字段相等:
db.xxx.find({"$where":"this.filed1 == this.filed2 ", xxx:"xxx",xxx:"xxx" })
判断不相等:
db.xxx.find({"$where":"this.filed1 != this.filed2 ", xxx:"xxx",xxx:"xxx" })
判断俩字段相等:
db.xxx.find({"$where":"this.filed1 == this.filed2 ", xxx:"xxx",xxx:"xxx" })
判断不相等:
db.xxx.find({"$where":"this.filed1 != this.filed2 ", xxx:"xxx",xxx:"xxx" })