group by version 5.7 of [mysql] error reporting
After mysql 5.7, the processing of group by is different. Here we do some research based on a demo.
Official documents:
https://dev.mysql.com/doc/refman/5.7/en/group-by-handling.html
https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_only_full_group_by
demand
Statistical user login times, display user Id and name, as follows ...
Posted by Tea_J on Tue, 17 Sep 2019 03:22:58 -0700
Efficiency optimization of SQL execution from 400+m to 30s
Recently on the project, customers asked me to help see a view with slow queries, provided that they had optimized it internally before giving it to me. When I saw their optimization, they simply used hint statements, and it didn't work.
First of all ...
Posted by sbourdon on Mon, 16 Sep 2019 23:39:32 -0700
IP Change in the Same Section of Oracle RAC Changing IP
This article only describes IP, virtual IP and scan changes in the same segment of the public network, and will introduce IP changes in different segments later.
The experimental environment:
1. Stop RAC Cluster Services
Cluster services are stopped at two nodes:
[root@odb09 ~]# /u01/app/11.2.0/grid/bin/crsctl stop cluster -all
[root@odb09 ~] ...
Posted by kiwiwilliam on Mon, 16 Sep 2019 01:19:43 -0700
Web Form Data Extraction Based on Interface Crawler
I recently received a task, to climb a data, the data in a web page table, the amount of data hundreds. Open debugging mode and find that the interface returns an html page, as long as it is treated as string. (xpath crawler is troublesome for parsing html files) The scheme uses regular matching of all cell rows and extracting cell content, whi ...
Posted by GameMusic on Wed, 11 Sep 2019 20:00:11 -0700
Usage of Mybatis useGeneratedKeys parameter
In Mobile, there are three locations where the parameter "useGeneratedKeys" can be set:
1. Set the useGeneratedKeys parameter in the setting element. For databases that support automatic generation of primary keys, such as mysql, sql server ...
Posted by flemingmike on Tue, 10 Sep 2019 02:35:04 -0700
A Brief Analysis of Logfile Sync Waiting for Super High Case
Monitoring tool DPA found a DB Commit Time indicator alarm on an Oracle database server overseas, which exceeded the red alarm line (about 40 milliseconds, yellow alarm 10 milliseconds, red alarm line 20 milliseconds). As shown in the following screenshot, the AWR report for the corresponding period was generated, and log file sync waited insid ...
Posted by Pi_Mastuh on Sat, 07 Sep 2019 09:40:50 -0700
mybatis tramples on multiple data sources and database connections are often disconnected
problem
A strange problem with a project recently is that the database often reports that the connection is closed every few hours.
Even with the following configuration, it is still not possible, and there is no article on the Internet explaining the pit.
test-on-borrow: true
test-while-idle: true
validation-query: select 1 from dual
Trou ...
Posted by xenooreo on Wed, 04 Sep 2019 01:15:26 -0700
Technology Sharing | MySQL Captures Error Information during Batch Insertion
Author: Yang Taotao
background
Today's article comes from a question asked by today's customers.
Problem: I'm migrating from Oracle to MySQL, and the data has been converted to a simple INSERT statement. Because there are many statements, I don't know how to locate the wrong statement every time I import it. If there are fewer INSERT statement ...
Posted by codeman on Thu, 29 Aug 2019 02:19:02 -0700
Installation of oracle database kernel parameters under Linux
The following kernel parameters need to be configured when installing the database:
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wm ...
Posted by leszczu on Wed, 28 Aug 2019 08:14:45 -0700
Student Comprehensive Evaluation System
Student Comprehensive Evaluation System
Creation Statement of mysql Database in Student Comprehensive Evaluation System
Creating sentences of oracle database in students'comprehensive evaluation system
SQL Server database creation statement of st ...
Posted by michaellunsford on Mon, 26 Aug 2019 22:33:12 -0700