İçeriğe geç

MongoDB Ve, Veya, Büyüktür, Küçüktür, Büyük Eşittir, Küçük Eşittir Sorguları

MongoDB – Ve ($or) – Küçüktür, Büyüktür, Küçük Eşittir, Büyük Eşittir

gte : büyük eşit
lte: küçük eşit


db.getCollection('Product').find({
$and: [
{ "Price": { $gte: "1600"}},
{ "Price": { $lte: "1605"}}
]
})

 

gt : büyük
lt: küçük


db.getCollection('Product').find({
$and: [
{ "Price": { $gt: "1600"}},
{ "Price": { $lt: "1605"}}
]
})

 

MongoDB – Veya ($or) – Küçüktür, Büyüktür, Küçük Eşittir, Büyük Eşittir

gte : büyük eşit
lte: küçük eşit


db.getCollection('Product').find({
$or: [
{ "Price": { $gte: "1600"}},
{ "Price": { $lte: "1605"}}
]
})

0 0 votes
Article Rating
Tarih:AnasayfaMongoDB
Subscribe
Bildir
guest
0 Yorum
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x