MySQL must know and know - Chapter 6 filtering data
Filter data
This chapter will teach you how to specify search criteria using the WHERE clause of a SELECT statement.
Use WHERE clause
Databases generally contain a large amount of data and rarely need to retrieve all rows in the table. Usually, only part of the table data will be extracted according to the requirements. To retrieve only the ...
Posted by guiltyspark on Wed, 12 Jan 2022 01:47:16 +0100
Detailed explanation of SQL language foundation
sql language
Overview and function
**Overview: * * structured query language is abbreviated as SQL, and SQL statement is a language for database operation.
**Function: * * you can add, delete, modify and query the data in the database, tables and tables in the database management system through Sql language.
<br/ >
sql classification ...
Posted by jasoncable on Tue, 11 Jan 2022 16:25:43 +0100
Parsing cursor execution procedure of MySQL stored procedure
The original content of GreatSQL community cannot be used without authorization. Please contact Xiaobian and indicate the source for reprint.Content outline1, Test environment construction2, Execute process resolution3, Precautions1, Test environment constructionFirst, create a table and insert several rows of data fields:CREATE TABLE t (s1 INT ...
Posted by hmvrulz on Tue, 11 Jan 2022 02:57:35 +0100
Dark horse programmer -- mysql advanced -- Notes on sql optimization
1.5.sql optimization
1.5.1. Check the execution frequency of sql
After the MySQL client is successfully connected, you can view the server status information through the show [session|global] status command. You can view the main operation types on the current database by viewing the status information.
--The following command displays the ...
Posted by trilbyfish on Sun, 09 Jan 2022 00:56:16 +0100
Today, let's analyze several common table connection methods in SQL in detail
Introduction: SQL optimization is the most important part of database performance optimization. The key of SQL optimization is inseparable from three points: table connection mode, access path and execution order. This paper focuses on several common connection modes.
For multi table Association query, the execution steps of the query optimize ...
Posted by MSK7 on Sat, 08 Jan 2022 02:24:01 +0100
Technology sharing | self made GreatSQL Docker image
The original content of GreatSQL community cannot be used without authorization. Please contact Xiaobian and indicate the source for reprint.In the near future, we plan to create a docker image of GreatSQL to facilitate community users to use GreatSQL.The environment for making docker images is based on CentOS 7.9:[root@greatsql]# cat /etc/redh ...
Posted by gardnc on Fri, 07 Jan 2022 02:54:47 +0100
java database connection
1. What is a data connection pool
Database connection pool( Database Connection Pooling)When the program is initialized, a certain number of database connection objects are created and saved in a memory area, which allows the application to reuse an existing database connection instead of re establishing one; Release the database connection ...
Posted by actionsports on Thu, 06 Jan 2022 16:03:20 +0100
MySQL ---- > > JDBC programming
catalogue
1, What is JDBC
2, Working principle and advantages of JDBC
3, JDBC Usage Summary
1. Create database Connection
2. Create operation command Statement
3. Use the operation command to execute SQL
4. Process ResultSet
5. Release resources
Specific implementation code:
4, JDBC common interfaces and classes
1.JDBC API
2. Databa ...
Posted by droomagon on Thu, 06 Jan 2022 10:45:34 +0100
Usage Summary of SQL Server Case when
Case has two formats: simple case function and case search function.
โ simple Case function
The function of a simple Case expression is to use the expression to determine the return value:
select id,name,
case sex
when '1' then 'male'
when '2' then 'female'
else 'other' end
from student
โ search Case function:
Case function (c ...
Posted by vasoftwaresolutions on Thu, 06 Jan 2022 05:02:17 +0100
[MySQL basics] 07: View
๐ท๏ธ The current chapter is [MySQL basics] 07: view ๐ค ๐ท๏ธ More: MySQL basic tutorial , take you to start MySQL database on a zero basis! ๐ช ๐ท๏ธ Welcome to praise ๐ Collection ๐ Attention โค๏ธ Leaving a message. โ๏ธ
Concept of view
A virtual table composed of data queried by one or more tables in a database according to specific cond ...
Posted by manmadareddy on Wed, 05 Jan 2022 21:33:14 +0100