Six steps of jdbc connection to database and handwritten implementation of simple database connection pool

We may often use Hibernate, Mybatis, jpa and other frameworks in our study and work. These frameworks have a good encapsulation of the database connection pool and may ignore the underlying implementation of the database. Today, let's take a look at how to write a simple database connection pool. Before that, let's recall the steps of ja ...

Posted by Diggler on Wed, 24 Nov 2021 03:09:42 +0100

ELK log analysis system

catalogue 1, Introduction to ELK log analysis system 1. Advantages and disadvantages of log server 2. What is ELK? 2.1 Logstash management includes four tools 2.2 log processing steps   2, Basic core concepts of Elasticsearch 3, Logstash introduction 4, Introduction to Kibana 5, Configure ELK log analysis system 1. Install elasti ...

Posted by landung on Tue, 23 Nov 2021 03:36:09 +0100

MySQL multi table query, SQL, Cartesian product equivalent connection, self connection external connection, SQL99 new features, complete and detailed, collectable

Multi table query, also known as association query, refers to two or more tables completing the query operation together. Prerequisite: these tables queried together are related (one-to-one, one to many). There must be an associated field between them. This associated field may or may not have a foreign key. For example, employee table a ...

Posted by JetJagger on Mon, 22 Nov 2021 21:54:01 +0100

From shallow to deep, sort from heap to heap

All the code in this article is big root heap! The implementation language is Java The pictures are all from the great God, and the great God's articles also give me a lot of inspiration Heap of data structures Heap sort This video is easy to understand, from what is heap, what is heap, and then to the realization of heap sorting. It is ver ...

Posted by witham on Mon, 22 Nov 2021 21:07:41 +0100

#Wan A10: how does mysqldump achieve consistent backup

Wan A10: how does mysqldump achieve consistent backupExperimental sceneMySQL 8.0.25 InnoDBExperimental steps:Start general first_ Log observe the changes in the export execution processset global general_log=ON;mysqldump key parameter description:--Single transaction parameter description:Set the isolation level to REPEATABLE READ and start a r ...

Posted by RMcLeod on Mon, 22 Nov 2021 16:30:16 +0100

MySQL query Basics

Advanced 1. Direct query – single field in query table – select sNo from student; – single field in query table – select sNo, sName from student; – query all fields in the table select * from student; Note: which library to use when querying all fields 2. Query constant value select 100; select 'male'; ...

Posted by lonewolf217 on Sun, 21 Nov 2021 08:04:37 +0100

SQL Programming 3: more complex queries

1. View A view is a virtual table, which is different from a direct operation data table. A view is created based on a SELECT statement (which will be described in detail below). Therefore, when operating a view, a virtual table will be generated according to the SELECT statement that created the view, and then SQL operations will be performed ...

Posted by www.phphub.com on Sun, 21 Nov 2021 02:17:28 +0100

Play with the design of constraints, aggregate query, joint query and three tables of MYSQL human high-quality database

1, How many constraints do you master in MYSQL? In MYQSL, there are some constraints. For example, it cannot be null or must be unique. Like ID cards, everyone's ID number is unique. Gender can be male or female, but not null. The following describes six constraints in MYSQL 1. NOT NULL: a constraint column cannot be empty. -- Cre ...

Posted by sandrol76 on Sat, 20 Nov 2021 20:06:18 +0100

Definition and usage of MySQL C API

Part 1: init initializes MySQL connection related API s: (1) mysql_init : MYSQL* mysql_init(MYSQL *mysql); Returns a MySQL handle. Corresponding to this handle, MySQL will allocate an object in the database and open up memory to store the processing information associated with the connection. All subsequent operations on this database conne ...

Posted by mgilbert on Sat, 20 Nov 2021 02:32:39 +0100

Data kinship analysis of Oracle SQL and stored procedures in data governance

An important basic work in data governance is to analyze the blood relationship of data in the organization. With complete data kinship, we can use it for data traceability, impact analysis of table and field changes, proof of data compliance, inspection of data quality, etc. The methods of analyzing blood relationship of data are mainly divid ...

Posted by nileshkulkarni on Sat, 20 Nov 2021 00:40:43 +0100