摘要:
1.按年分库表联合查询 db.collection_2023_3.aggregate( {$set:{_id:'2023_3'}}, {$unionWith:{coll:'collection_2023_4',pipeline:[ { $set: { _id: "2023_4" } } ]}} ) 阅读全文
posted @ 2023-12-22 11:49
紫蕈
阅读(1087)
评论(0)
推荐(0)
摘要:
1.$dateFromString字符串转时间类型 { $dateFromString:{ dateString:<dateStringExpression>, //要转化的时间字符串 format:<formatExpression>, //转换的格式,’%Y-%m-%dT%H:%M:%S.%LZ 阅读全文
posted @ 2023-12-22 10:51
紫蕈
阅读(959)
评论(0)
推荐(0)

浙公网安备 33010602011771号