1. Querying dataFirst save from the simple come on, before we realized the database table information read into a list collection, the database query, realIs the query of this set;1 Public classShow {2 Public Static voidMain (string[] args) {3
MySQL Character set support (Character set supports) has two aspects: Character set (Character set) and Sort method (Collation). Support for character sets is refined to four levels: server, database, data table (table), and connection
Original: https://jin-yang.github.io/post/mysql-group-commit.htmlGroup commit is to optimize the brush disk problem when writing logs, from initially supporting only the InnoDB Redo log group submission, to the 5.6 official version support redo log
MySQL is different from SQL Server and is based on the content of common stored procedures. 1. Identifier Qualifier
Sql server
[]
Mysql
``
2. Adding strings
Sql server
Directly
Stored procedures in the YsqlStored Procedures
Stored procedure procedure is a way of handling data. is a function that has no return value.
Create a stored procedure
------------------------------------------------------------
ObjectiveAfter the completion of the table, it is obvious that the query for the data becomes more complex, especially in relation to the table, and in some cases it is not possible to use join at all.In fact, the individual is more encouraged to
node is asynchronous, so the database query operation is usually done through callbacks to manipulate the results of the query. But in the es7 of async/await, basically no longer need callback, so this article is based on async/await to the MySQL
Tag: Engine relies on LIB Public 1.0 Bean ack run UIDThis article describes springboot access to relational MySQL through JDBC, through the jdbctemplate of spring.Preparatory work
JDK 1.8
Maven 3.0
Idea
Mysql
Initialize
Functions in MySQLFunction
Function: Encapsulates a piece of code into a struct, and calls the struct execution (code reuse) when a code block is required
Functions are divided into two categories: system functions and custom functions
Variable
System variables and custom variables
System variables
System variables: System-defined variables, most of the system variables, generally do not require user control, system variables used to control the performance
1. What is a databaseThe database is the warehouse that stores the data, its essence is a file system, the data is stored in the specific format, the user can add, modify, delete and query the data in the database by SQL.2. IntroductionMySQL is an
Solutions for MySQL conversion codingFirst, under the UTF8 MySQLGet the Chinese ' visitors ' under the GBK of the 16 binary codeMysql> SELECT Hex (CONVERT (' Visitors ' USING GBK);D3cebfcdAnti-push GBK 16 encoding, retrieving ChineseMysql> SELECT
MySQL in itself has the service to provide efficient import and export files, of course, here is not to dump the results into a SQL script, in peacetime, the results of the query exported to a CSV file is a kind, here Simply say how to correctly in
1) Delete records before a certain timeDelete from Cs_storage_video_file where date (start_time) Problem, currently just support accurate to day, unable to support when seconds, following the instructions to delete the exceptionDelete from
What is MDLMdl,meta data lock, a metadata lock, is generally called a dictionary lock. The dictionary lock corresponds to a data lock. Dictionary lock is to protect the data object is changed, usually some DDL will change the Dictionary object, such
Database Design and usage suggestions
Some personal suggestions for using and designing databases:
1. When designing and using tables, always think of a problem: what we need to write and query is used to store and query data in the database.
2.
MySQL declaration variables and stored procedure analysis, mysql Stored Procedure
Declare Variables
Set global variables
Set @ a = 'new variable ';
Declear variables used in functions and stored procedures
Declear a int unsigned default 1;
This type
Details about how to clear table space fragments in MySQL.
How to clear table space fragments in MySQL
Causes of fragmentation
(1) the storage of a table is fragmented. When a row of content is deleted, the space in the row is blank and left blank.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service