MongoDB数据类型操作:CURD
1、添加数据:
mongodb里存储数据的格式文档形式,以bson格式的文档形式。 创建数据库:
> use tp5shop
switched to db tp5shop
> db.getName()
tp5shop使用切换库,不存在自动创建&am…
描述
如果条件为TRUE,则IF函数返回一个值,如果条件为FALSE,则返回另一个值。
语法
IF (logical_test, value_if_true, [value_if_false]) 争论
Argument描述Required/Optionallogical_testThe condition you want to test.Requiredvalue_if_trueThe value that you want re…