0
I가 다음과 같은 SQL 문을 SQL 문은 단순히 "LIKE"쿼리, 그것은 다음과 MongoDB를 문MongoDB를의 equivelant 쿼리 "싫어"SQL로
db.MONIES.find({
"Currency": "USD%"
}, {
"Currency": 1,
"TransTime": 1,
"AuthTime": 1
});
를 얻을 것이라고했다
SELECT Currency, TransTime, AuthTime FROM MONIES WHERE Currency not like 'USD%';
경우
"NOT LIKE"와 동등한 쿼리입니까? 더 $like
운영자가 없습니다
db.inventory.find({ item: { $not: /^p.*/ } })
: 실제로 당신이 원하는 무엇의 예를 가지고 난이 the documentation for the 'not' operator 당 올바른 생각,하지만 난에 유래
db.MONIES.find({
"Currency": { $not: { $like: 'USD%' } }
}, {
"Currency": 1,
"TransTime": 1,
"AuthTime": 1
});
$ like 연산자가 없으므로 정규 표현식을 찾고 있다고 생각합니다 http://docs.mongodb.org/manual/reference/operator/query/regex/ –