Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

update table in mongodb

db.people.updateMany(
   { age: { $gt: 25 } },
   { $set: { status: "C" } }
)
--SQL 
UPDATE people
SET status = "C"
WHERE age > 25
Source by www.mongodb.com #
 
PREVIOUS NEXT
Tagged: #update #table #mongodb
ADD COMMENT
Topic
Name
4+5 =