首页 > 数据库技术 > 详细

mongodb更新器

时间:2017-06-03 17:56:55      阅读:287      评论:0      收藏:0      [点我收藏+]
Name    Description
$inc    Increments the value of the field by the specified amount.
$mul    Multiplies the value of the field by the specified amount.
$rename    Renames a field.
$setOnInsert    Sets the value of a field if an update results in an insert of a document. Has no effect on update operations that modify existing documents.
$set    Sets the value of a field in a document.
$unset    Removes the specified field from a document.
$min    Only updates the field if the specified value is less than the existing field value.
$max    Only updates the field if the specified value is greater than the existing field value.
$currentDate    Sets the value of a field to current date, either as a Date or a Timestamp.

https://docs.mongodb.com/manual/reference/operator/update-field/

mongodb更新器

原文:http://www.cnblogs.com/rocky-AGE-24/p/6937971.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!