5 月 05 2024 By 云博小周宇 定时自动备份mysql 数据库 首先,利用定时shell脚本来实现 #!/bin/sh DATE=`date +%Y-%m-%d_%H:%M:%S` Pass=‘VHlrakBNeVNRTDNlZGMkUkZW‘ #加密解密密码,避… Read More
5 月 05 2024 By 云博小周宇 oracle-11.2.0.4静默安装—-RedHat7.5 数据库 1.配置/etc/hosts文件和关闭seliux和firewall防火墙 编辑/etc/hosts文件 [root@henry ~]# vim /etc/hosts [root@henry ~]# … Read More
5 月 05 2024 By 云博小周宇 postgres常用运维sql 数据库 1、查看数据库大小 select pg_database_size(‘log_analysis‘); postgres=# select pg_database_size(‘postEx… Read More
5 月 05 2024 By 云博小周宇 ssm集成mongodb 数据库 摘自https://blog.csdn.net/weixin_43923112/article/details/86676643 mongodb.properties #DB namemongo.db… Read More
5 月 05 2024 By 云博小周宇 oracle自连接 数据库 自连接:通过表的别名,将同一张表视为多张表 select e.ename 员工姓名,b.ename 老板姓名 from emp e,emp b where e.… Read More
5 月 05 2024 By 云博小周宇 mysql获取某个字段平均值方法AVG函数的使用 数据库 直接上脚本 SELECT MAX(student_result) AS 最高分,MIN(student_result) AS 最低分,CAST(AVG(student_resu… Read More
5 月 05 2024 By 云博小周宇 MySQL Execution Plan–使用Query Rewrite 数据库 安装Query Rewrite Plugin 在MySQL的安装目录的share文件夹下,有两个文件用来安装和卸载Query Rewrite Plugin: install_rewriter.sql:… Read More
5 月 05 2024 By 云博小周宇 SQL Server sp_monitor使用 数据库 SQL Server提供了sp_monitor存储过程可以方便我们查看SQL Server性能统计信息,包括CPU/Network/IO,通过这些信息可以对自己的数据库性能状况有一个大致的了解。 &n… Read More
5 月 05 2024 By 云博小周宇 一、数据库层搭建 数据库 一、用户列表的实现 CREATE TABLE `chatuser` ( -- `Id` int(11) NOT NULL AUTO_INCREMENT, `NickName` varchar(255)… Read More
5 月 05 2024 By 云博小周宇 mysql 开启log-bin功能 数据库 ? 今天搜索了一下增量备份脚本,简单查了一下,增量备份是通过mysql binlog来做的,就是将某段时间内的操作,保存到某二进制日志当中。备份就是备这个日志,恢复也是通过它。然鹅,这里我们需要先开启… Read More
5 月 05 2024 By 云博小周宇 SQL语句规范 数据库 SQLStructure Query Language,结构化查询语言 1、规范(1)mysql对于SQL语句不区分大小写,SQL语句关键字尽量大写 show databases;show DataB… Read More
5 月 05 2024 By 云博小周宇 mysql时间函数操作 数据库 Mysql时间转换函数 https://blog.csdn.net/w_qqqqq/article/details/88863269 https://blog.csdn.net/w_qqqqq/art… Read More
5 月 05 2024 By 云博小周宇 oracle数据库GROUP BY 子句 数据库 1.GROUP BY子句 在SELECT 列表中所有未包含在组函数中的列都应该包含在GROUP BY 子句中. 如下: SELECT deptno,AVG(sal) fr… Read More
5 月 05 2024 By 云博小周宇 SQL Server 将数据导出为XML和Json 数据库 有时候需要一次性将SQL Server中的数据导出给其他部门的也许进行关联或分析,这种需求对于SSIS来说当然是非常简单,但很多时候仅仅需要一次性导出这些数据而建立一个SSIS包就显得小题… Read More
5 月 05 2024 By 云博小周宇 [转帖]InnoDB与MyISAM等存储引擎对比 数据库 InnoDB与MyISAM等存储引擎对比 https://blog.ouyangsihai.cn/innodb-yu-myisam-deng-cun-chu-yin-qing-dui-bi.html … Read More
5 月 05 2024 By 云博小周宇 sql 行转列分析 以后再也不用记了 数据库 表scores 请转成的横表是这样子的: // ::::我们来分析下:首先 姓名这一列肯定是不重复的姓名【重复也没办法了 这需求只能这样了】 因此 我们用gr… Read More
5 月 05 2024 By 云博小周宇 SQL Server 获取所有库名 数据库 ----1. 获取所有的数据库名----- SELECT NAME FROM MASTER.DBO.SYSDATABASES ORDER BY NAME -----2. 获取所有的表名-… Read More
5 月 05 2024 By 云博小周宇 django+SQLite搭建轻量级个人博客(七)前端页面敏感词替换 数据库 前端页面keyword替换实现机制是:使用django模板filter,但是需要通过自定义filter方式实现。步骤和效果见下述内容。 1、使用@register.filter() 和 @regist… Read More
5 月 05 2024 By 云博小周宇 Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your My 数据库 转自:https://blog.csdn.net/haha_66666/article/details/78444457 Query : select * from order LIMIT 0, 10… Read More
5 月 05 2024 By 云博小周宇 MySQL备份–xtrabackup与mysqldump工具使用 数据库 MySQL备份----xtrabackup与mysqldump工具的使用 一、Xtrabackup8.0: 一个用于MySQL数据库物理热备的备份工具,支持MySQL、Percona server和M… Read More