文章分类 -  mongodb

MongoDB 字符串截取 $substr
摘要:$substr,$substrBytes,$substrCP是aggregate的管道操作符,主要可用在project中, $substr在版本3.4后最好使用$substrBytes substr db.getCollection("table_name").aggregate({ $projec 阅读全文
posted @ 2021-09-15 18:18 51core 阅读(3715) 评论(0) 推荐(0)
mongoDB的常用语法
摘要:阅读原文:https://www.cnblogs.com/leskang/p/6000852.html 安装: 到mongodb官网下载安装包或者压缩包:https://www.mongodb.com/download-center?jmp=nav 1、如果是msi包的话则点击按步骤安装,如果是压缩 阅读全文
posted @ 2021-07-05 18:55 51core 阅读(82) 评论(0) 推荐(0)
MongoDB和MySQL基本语法比较
摘要:阅读原文:https://www.cnblogs.com/mao2080/p/9570909.html 1、数据准备 1、MongoDB数据,工具为:Robo 3T mongo-data 2、MySQL数据 CREATE TABLE `user` ( `userId` varchar(20) NOT 阅读全文
posted @ 2021-07-05 18:52 51core 阅读(76) 评论(0) 推荐(0)