04 2021 档案
摘要:eclipse搭建SpringBoot项目 1、创建maven项目 2、编写项目组和项目信息 3、在pom.xml中添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starte
阅读全文
摘要:db.license.find({ "issue_unit" : "001002030", "license_name" : "烟草专卖零售许可证"}).forEach(function(x){db.license_20210409.insert(x)})
阅读全文
摘要:1、sort()方法在MongoDB中使用sort()方法对数据进行排序,sort()方法可以通过参数指定排序的字段,且指定排序顺序1和-1。1用于升序排列,而-1用于降序。语法:db.COLLECTION_NAME.find().sort({KEY:1})示例:按照updateTime降序、ins
阅读全文
摘要:MongoDB查询数据默认最大内存为100M,如果超过,则需要使用allowDiskUse选项,可以将查询结果保存到临时文件进行排序分组。 db.license.aggregate( {"$match" : {"issue_unit" : "001002030", "state" : 11}}, {
阅读全文