随笔分类 -  数据库

摘要:ubuntu 18 安装 mysql 卸载原有的mysql服务 sudo apt-get autoremove --purge mysql-server-5.0 sudo apt-get remove mysql-server sudo apt-get autoremove mysql-server 阅读全文
posted @ 2021-06-21 14:27 巫小诗 阅读(240) 评论(0) 推荐(0) 编辑
摘要:SQLAlchemy 创建基类 from sqlalchemy.ext.declarative import declarative_base # 基类 Base = declarative_base() 创建 session 会话 from sqlalchemy import create_eng 阅读全文
posted @ 2020-12-15 18:01 巫小诗 阅读(100) 评论(0) 推荐(0) 编辑
摘要:mongo 聚合索引 根据某字段进行分组统计 数据源结构 { "_id" : ObjectId("5fc7694da343baa23c0b2d75"), "id" : 0, "age" : 13, "name" : "name869", "created" : ISODate("2020-12-02 阅读全文
posted @ 2020-12-02 19:31 巫小诗 阅读(93) 评论(0) 推荐(0) 编辑
摘要:我现在使用的是mysql5.7的版本,每次执行sql语句的时候会报如下的问题 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'informatio 阅读全文
posted @ 2020-07-08 09:07 巫小诗 阅读(176) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示