(notes to the whole stack) 8.MYSQL optimization summary
1. Database table structure optimization
a. select the most applicable field attribute and index
According to the actual situation: for example, limit the length of varchar field, set fixed length char; use enum.
b. use connections instead of subqueries
According to the actual situation: try not to use subquery if it can be rewritten as join.// ...
Added by shadowk on Tue, 29 Oct 2019 16:18:43 +0200
spring boot teaches you how to handle global exceptions
spring boot global exception handling
Handling global exceptions requires three steps
Custom exception enumeration
Custom exception
Sprboot AOP exception handling
Below I write a relatively simple, hope to combine according to their own situation, here I simply write some code ideas.
1 Custom Same ...
Added by drepster on Wed, 02 Oct 2019 01:53:05 +0300
Stored procedures using dynamic SQL to process table_name as an input parameter (MySQL)
Refer to the notes MySQL Stored Procedures and Function Creation and the official website on how MySQL creates and uses stored procedures: https://dev.mysql.com/doc/refman/5.7/en/create-procedure.html
This main example uses stored procedures for input parameters and solves the problem of using table names as input parameters, since previously ...
Added by caaronbeasley on Fri, 27 Sep 2019 07:42:00 +0300
Mysql Learning Notes (6) - Stored Procedures
Catalog:
1. What is a stored procedure
Two. Six Stored Procedures
1. Stored procedures with input parameters
2. Stored procedures with output parameters
3. Stored procedures with input and output parameters
4. Stored Procedures with Conditional Judgement
5. Stored Procedures with Looping Procedures
6. Use the results of the query a ...
Added by dotsc on Fri, 05 Jul 2019 19:26:14 +0300
Full parsing of stored procedures in mysql
1. What is a stored procedure?
Stored procedures and functions are sql statements that have been compiled and stored in the database beforehand. Calling stored procedures can simplify our development. The difference between stored procedures and functions is that functions have return values and stored procedures have no return values.
2. Gra ...
Added by mgallforever on Thu, 27 Jun 2019 00:19:33 +0300
Summary of Java Web Development Knowledge (IV) - (oracle_programming)
Java Web Development Knowledge Summary (Oracle-Programming)
1. PL/SQL: Oracle-specific
1.1 PL/SQL Overview
PL/SQL (Procedure Language/SQL) is Oracle's procedural extension of SQL language. It refers to the addition of procedural statements (such as branches, loops, etc.) in the SQL command language, which makes the SQL language procedur ...
Added by MikeyNoedel on Fri, 21 Jun 2019 21:30:46 +0300
Storage of plsql-based code in the first root traversal tree with layer number
This article is from Li Mingzi's csdn blog( http://blog.csdn.net/free1985 For commercial reprints, please contact the blogger for authorization. For non-commercial reprints, please indicate the source.
Abstract: this paper introduces the implementation of plsql-based code storage in the first root traversal tree with layer number. The code in ...
Added by Replika on Fri, 14 Jun 2019 01:47:13 +0300
[Mybatis] The difference between MyBatis and ibatis in calling stored procedures with return results and output parameters
Everyone who has used mybatis knows that it is a project that was renamed after the acquisition of ibatis by Google, so it has also made a lot of upgrades. This article will introduce the difference between the two in calling stored procedures. ibatis has a special tag < procedure > which is no longer available in mybatis, but is distingu ...
Added by diode on Wed, 12 Jun 2019 20:56:14 +0300
SQL Server table structure (with constraints) replicates stored procedures
Various constraints in SQL Server and methods of querying various constraints using sql are introduced in the paper. Based on the above, table structure is implemented in this paper.
(Contains constraints) The storage process of replication. The stored procedure is tested on SQL Server 2008 and SQL Server 2014. sql is as follows
/********* ...
Added by ag3nt42 on Mon, 10 Jun 2019 22:47:39 +0300
The Impact of Cluster Index on Data Insertion
background
Developer feedback system is particularly slow to execute a stored procedure, which is checked because of the need to insert a large amount of data into the new task table during the execution of the stored procedure. The primary key of the task table is clustered index. Why does clustering index cause slow insertion? How much impa ...
Added by gwood_25 on Sat, 08 Jun 2019 00:05:03 +0300