摘要:aliyun环境docker安装并使用postgres121.拉取postgres镜像docker pull postgres:12 2.检查现有镜像docker images 3.启动postgres容器docker run -d --name pgsql12 -p 5432:5432 -e "P
阅读全文
|
随笔分类 - Database
摘要:aliyun环境docker安装并使用postgres121.拉取postgres镜像docker pull postgres:12 2.检查现有镜像docker images 3.启动postgres容器docker run -d --name pgsql12 -p 5432:5432 -e "P
阅读全文
摘要:SELECT BDCDYH_S, zd_shangyq.ZL FROM (SELECT substring(person_real_estate.BDCDYH, 1, 19) as BDCDYH_S FROM `person_real_estate` where id_card = 11010119
阅读全文
摘要:DB规范 一. 目的 规范化和标准化 MySQL 开发设计。 指导研发人员合理使用 MySQL ,发挥 MySQL 最优性能。 二、名词 术语和缩略语 描述 主键( PK ) Primary Key ,自带唯一和非空约束的索引键, 一个表中只有一个主关键字,主关键字又称为主键。 外键 ( FK )
阅读全文
摘要:MySQL下载步骤详解 (biancheng.net) MySQL :: Download MySQL Community Server (Archived Versions) MySQL安装配置教程(Windows系统) (biancheng.net) MySQL免安装版配置教程 (bianche
阅读全文
摘要:循环创建表 drop procedure IF EXISTS create_table; DELIMITER //CREATE procedure create_table() BEGIN SET @i=0; WHILE @i < 10 DO SET @sqlstr = CONCAT( "CREAT
阅读全文
摘要:1.mongodb常用操作 1.1聚合,查询,更新 // 3.1db.sensitive_info_base.aggregate([{ "$match" :{"date":{ "$gte" : 20201223}}}, { "$group" : { "_id" : "$sensitive_type"
阅读全文
摘要:springdata框架 使用IDEA初始化springboot+springdata框架,开发mongodb示例,pom.xml文件如下 主要实现思路 Mongotemplate 首先创建一个实体,用来对应mongodb中的文档 1 //@Document(collection = "test_s
阅读全文
摘要:windows开启用户认证 打开配置文件C:\Program Files\MongoDB\Server\4.0\bin\mongod.cfg 增加如下内容 创建用户 修改用户权限 登录mongdb,执行下面的命令 grantRolesToUser函数使用方法介绍:https://docs.mongo
阅读全文
摘要:聚合查询 先准备一个集合,里面是股票的历史价格记录,查询一个集合中,某个股票的开盘价的均值是多少的命令: 查询结果: 数据集合: 可以使用的聚合函数
阅读全文
摘要:#进入数据库 use test #创建一个集合 db.createCollection("runoob") #查看集合 show collections #插入文档 #查看集合 show collections #查看文档 db.col.find() #插入多条数据 #更新数据,前面是查询条件,后面
阅读全文
|