![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
database
Oscar_e
这个作者很懒,什么都没留下…
展开
-
Windows下安装postgresql10的详细步骤解析
本例安装postgresql-10.4-1-windows-x64 postgresql中文社区下载地址:http://www.postgres.cn/download/postgresql官网下载地址:https://www.postgresql.org/download/由于网络问题,本例选用的下载地址:https://download.pchome.net/development...原创 2018-11-21 09:56:57 · 3118 阅读 · 0 评论 -
mysql 统计连续出现数值的最大次数
统计t_0字段内,连需出现同一数值的次数;例如统计一个月内,某会员连需打卡的最大连续天数(有中断即从0开始重新计算) $colums = 't_0'; $table = 'lz_telnet'; $vs = 30; $sql = "select aa.".$colums.", max(rownum) maxrow ,sum(rownum) sumro...原创 2018-10-19 13:18:45 · 3092 阅读 · 0 评论 -
easy_install安装python的MySQLdb模块
1.首先要安装easy_install[html] view plain copy在CODE上查看代码片派生到我的代码片apt-get install python-setuptools或者[plain] view plain copy在CODE上查看代码片派生到我的代码片yum install python-setuptools2.接着安装MySQLdb模块[html] vie...转载 2018-09-19 13:47:55 · 447 阅读 · 0 评论 -
mysql开启日志,用于记录所有对数据库的操作,分析原因
开启日志操作1. ps -ef|grep mysqld2. /usr/local/mysql/bin/mysql -uroot -p --socket=/tmp/mysql.sock3. show variables like '%gener%'; #如下截图4. set global general_log = on;#开启5. exit #退出mysql5. tail -f ...原创 2018-06-13 11:04:14 · 2812 阅读 · 0 评论 -
centos7 安装postgres数据库
博客地址Github1. 查看yum数据源https://yum.postgresql.org/repopackages.php2. 安装10.6数据库源$ yum install -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm...原创 2019-09-02 14:56:34 · 173 阅读 · 0 评论