Spring Boot+SQL_JPA real-world pessimistic lock and optimistic lock
Original Link: https://zzzzbw.cn/article/18
Recent concurrency problems have been encountered in the company's business, and it is still a very common concurrency problem. The company's business is the most common "order + account" problem, which is considered a low-level error. Since the company's business is relatively complex an ...
Posted by marknt on Sun, 19 Dec 2021 13:00:13 +0100
MySQL storage function, worth a visit
Write in front: follow Master Kang of station B to learn the notes summary and self summary of mysql.
1. Create storage function
Syntax format:
CREATE FUNCTION Function name(Parameter name parameter type,...)
RETURNS return type
BEGIN
Function body #There must be a RETURN statement in the function body
END
explain:
Parameter li ...
Posted by Lord Sauron on Sun, 19 Dec 2021 12:21:00 +0100
Detailed explanation of Java Web paging function, those routines of Java interview in recent years
Usage scenario: when the amount of data fetched reaches a certain level, paging is required for data segmentation.
When we do not use the paging function, we will face many problems:
Problems with the client: if too much data is displayed on the same page, the user experience will be seriously affected because the page is too long, it is ...
Posted by Desertwar on Sun, 19 Dec 2021 07:00:52 +0100
Several cases of index failure
I Several cases of index failure
The index does not always take effect. For example, the following situations will lead to index invalidation
If there is or in the condition, it will not be used even if some of the conditions are indexed (this is why or is used as little as possible) (user_id is not indexed) Note: to use or and make the index ...
Posted by EverToDesign on Sun, 19 Dec 2021 04:46:42 +0100
Mybatis, this is enough, simple and comprehensive! (recommended Collection)
Mybatis
1. Introduction
MyBatis was originally a part of apache Open source project iBatis, 2010 project Migrated from apache software foundation to [Google Code]( https://baike.baidu.com/item/google Code / 2346604) and renamed MyBatis. Moved to in November 2013 Github. iBATIS comes from the combination of "internet" and "aba ...
Posted by fourlincoln10 on Sat, 18 Dec 2021 10:44:54 +0100
Relational database standard language sql
4.3 data definition
4.3. 1 Definition and deletion of mode
What is a database schema? Database schema is a logical grouping object. Database schema is a collection of database objects, which contains various tables, views, stored procedures, indexes, etc. Imagine a schema as a container for objects. Database schema can be used as a namespace ...
Posted by caramba on Sat, 18 Dec 2021 09:01:06 +0100
MySQL basic learning notes - Day01
1. Concept of database
DB: database: a "warehouse" for storing data. It holds a series of organized data;DBMS: Database Management System. Database is a container created and operated by DBMS;SQL: Structure Query Language: a language specially used to communicate with the database;Relationship diagram of the three:
2. Common ...
Posted by Hurklefish on Sat, 18 Dec 2021 04:19:36 +0100
Learning and sorting out the basic knowledge of Oracle SQL statements
Due to the learning needs, I will start to learn the basic knowledge of database and the preparation and use of SQL statements from today. Therefore, I record my learning process here to urge myself, consolidate the knowledge I have learned, and hope to help more introductory students.
1. Establish database
create database db_name;//db_name i ...
Posted by whitemoss on Sat, 18 Dec 2021 01:12:28 +0100
Dynamic SQL of Damon database using 𞓜 connector
1. No '' after variable conversion
1.1. Create a stored procedure, which contains a cursor to query the table in a certain mode. It also contains a print of the for loop. The print is added to make the effect of dynamic statements substituted with parameters more intuitive.
CREATE OR REPLACE PROCEDURE T_1208(COL VARCHAR(100))
AS
CURSOR T_CS ...
Posted by knetcozd on Fri, 17 Dec 2021 18:22:54 +0100
A simple example of MyBatis
Introduction to MyBatis
MyBatis is an excellent persistence layer framework that supports customized SQL, stored procedures, and advanced mapping. MyBatis avoids almost all JDBC code and manually setting parameters and getting result sets. MyBatis can use simple XML or annotations for configuration and original mapping, and map the inte ...
Posted by JJ123 on Fri, 17 Dec 2021 08:41:03 +0100