Related subquery index transaction view stored procedure data import and export remote access database
Related sub query
-- Related sub query: sub queries cannot be run independently, and external queries must be run before sub queries
-- Advantages: simple and powerful
-- Disadvantages: difficult to understand
-- Query the employee with the highest salary in the Department
SELECT deptno,ename,max(sal) from emp GROUP BY deptno
-- The state ...
Added by stweaker on Wed, 19 Jan 2022 12:50:04 +0200
Gtid of MGR_ Analysis of the problem of executed discontinuity
The original content of GreatSQL community cannot be used without authorization. Please contact Xiaobian and indicate the source for reprint.1. Problem descriptionOccasionally encountered gtid during MGR testing_ The executed transaction ID is discontinuous, but it does not affect the normal operation of the database. The phenomenon is as follo ...
Added by megavolt on Wed, 19 Jan 2022 12:39:58 +0200
Learning and using psql database
catalogue
0 psql introduction
2.3 console commands
2.5 database import and export
2.6 problem solving
3.API usage
3.0 libpqxx compilation
3.2 connection examples
3.3 creating an example
3.4 added examples
3.5 selection examples
3.6 modification example
3.7 delete example
5. Reference:
0 psql introduction
In d ...
Added by wilsonodk on Wed, 19 Jan 2022 10:33:38 +0200
MySQL database basic operation - regular expression
I Basic introduction
regular expression describes a string matching rule. Regular expression itself is a string. This string is used to describe and define matching rules to match a series of strings that meet a certain syntactic rule. In development, regular expressions are often used to retrieve and replace text that conf ...
Added by Base on Wed, 19 Jan 2022 09:24:02 +0200
Redis 31: actual combat: redis cluster mode
Redis Cluster is a Redis Cluster scheme launched by redis version 3.0. It distributes data in different service areas to reduce the system's dependence on a single master node and greatly improve the read-write performance of redis services.
Redis divides all data into 16384 slots, and each node is responsible for a part of the slots. When a r ...
Added by ctoshack on Wed, 19 Jan 2022 09:23:41 +0200
JDBC Learning Journal: database connection pool
7: Database connection pool
7.1 necessity of JDBC database connection pool
When developing web programs based on database, the traditional mode basically follows the following steps:
Establish database connection in the main program (such as servlet and beans)Perform sql operationsDisconnect database Problems in the development of this m ...
Added by sell-traffic on Wed, 19 Jan 2022 03:46:08 +0200
Mybatis plus common annotations and plug-ins
Mybatis plus common annotations and plug-ins (II)
1, @ TableName
value attribute
The name of the entity class is User and the name of the database table is t_user
@TableName(value = "t_user")
public class User {
//...
}
2, @ TableId
1. Snowflake algorithm
By default, the id column of the database is generated by the strategy based o ...
Added by ultrus on Wed, 19 Jan 2022 02:39:05 +0200
Tianchi Longzhu SQL training camp 04 Advanced SQL: set operation - addition and subtraction of tables, join, etc
This note is the learning content of Alibaba cloud Tianchi Longzhu plan SQL training camp. The link is: https://tianchi.aliyun.com/specials/promotion/aicampsql
1, Addition and subtraction of tables
1.1 what is set operation
A set represents "the sum of all kinds of things" in mathematics and a set of records in database Specific ...
Added by adt2007 on Tue, 18 Jan 2022 20:49:49 +0200
MySQL learning notes - transactions, views, triggers & stored procedures
1, Business
Characteristics of transactions
Atomicity: a transaction must be an atomic unit of work. All statements in a transaction must be done or none of them.Consistency: keep the data logically "reasonable". When A transfers to B, A must pay less and B must pay moreIsolation: if multiple transactions are executed concurrent ...
Added by Salsaboy on Tue, 18 Jan 2022 20:22:55 +0200
PostgreSQL mistakenly deleted PG_ filenode. What about map
Today, I saw someone on the Internet asking me to delete PG by mistake_ filenode. How to restore or rebuild a map? Let's learn about PG before solving this problem_ filenode. Map file.
For each table in PostgreSQL, there are files related to it on disk, and the name of these files is relfilenode. We can use pg_class to query the relfilenode fi ...
Added by chadowch on Tue, 18 Jan 2022 18:16:07 +0200