In the actual project, there are multiple tables associated with the relationship. It is impossible to retrieve all the data in a single table. If there is no table connection, then we need a lot of action. For example, it is necessary to find the
Classification of SQL statements by function (definition, manipulation, control, query)
DDL data Definition language, defining tables, libraries, views
DML Add, modify, and delete operations on data table records
DCL authorization, transaction
First, what database
Ii. Classification of databases
relational database (understanding)
Non-relational database
Third, MySQL database
Directory structure of MySQL
MySQL client/server
Related terms
Sql
MySQL Client type
MySQL Log in
Iv. Database
have not been seriously understood UPDATE operation of the lock, recently in MSDN Forums See a problem, ask the heap table update deadlock problem, the problem is very simple, there are similar tables and data:
CREATE TABLE DBO.TB ( C1 int,
A test table with uneven data distribution is first established by testing the following tests.
Use Tempdbgocreate TABLE _t ( C varchar (50)); CREATE INDEX Ix_c on _t (c); go--Add 10,000 data Insert _tselect (9999 + ID) from ( SELECT TOP 10000
This article brings to you the content is about MySQL database optimization method Summary, has certain reference value, has the need friend can refer to, hoped to be helpful to you.
Learning, database optimization is divided into all aspects, here,
This article gives you the content is about MySQL start error resolution, there is a certain reference value, the need for friends can refer to, I hope to help you.
Yesterday after resolving the database cross-permission operation, today opened the
This article introduces the master-slave synchronization principle of MySQL, master-slave synchronization configuration, master-slave synchronization delay, first of all, we first understand what is master-slave synchronization, master-slave
1. Add an account:
# Create a testuser account with a password of 123456 # If you do not write "identified by ' 123456 '" creates a TestUser account with a blank password mysql> create user testuser identified by ' 123456 '; # Refresh permissions
Restore data with backup +binlog.
Scene: Last night was made fully prepared, this morning the user accidentally deleted a table by mistake.
Solution: It is not recommended to restore directly in the original production environment, it is
Multi-version concurrency control
Most of MySQL's transactional storage engines do not implement simple row-level locks. Based on the consideration of improving concurrency performance, they generally implement multi-version concurrency control at
Build a Test table
View version Information
Select version (); 5.7.22
Create a parent table
drop table if exists Models; CREATE TABLE Models ( modelid SMALLINT UNSIGNED not null auto_increment, Name VARCHAR (+) not NULL, PRIMARY KEY
Remember a MySQL foreign KEY constraint design flaw
Background information
Recently in the database migration of the project, from Oracle to MySQL, a foreign key constraint was running normally in Oracle, and the MySQL reported an exception.
Introduction
Recently in the modification of data on the line, you need to now continue to back up the modified data, but the online customer's server is not directly connected, but through a bastion machine, which means that we can not directly
MySQL Query the time period of the data MySQL query based on the timestamp of the specified date not everyone will, the following is a way for you to introduce a MySQL query time period, for your reference, I hope you can enlighten.
Select Now
Pymysql is a pure Python implementation of the MySQL client operations library, support transactions, stored procedures, batch execution and so on. Pymysql follows the Python database API v2.0 specification and includes the Pure-python MySQL client
I accidentally accidentally deleted it yesterday.
Mysqldatabase, resulting in the next day
NavicatOpen, all kinds of error, but it took me 2 hours to solve various bugs, here to record the following, so that later accidentally made the same mistake
When using a MySQL database, it is often necessary to back up and restore the database, and it is very convenient to export the SQL file backup and directly execute the SQL file recovery. This article focuses on how to export and import SQL files to
"One-to-many" is the most common mapping relationship, simply like the relationship between consumers and orders. One-to-many: from the consumer corner of the degree of a consumer can have multiple orders, that is, a pair of more. Many-to-one: from
MySQL the table type MyISAM and the InnoDB The biggest difference is that InnoDB of support transactions. Brother Lian Education (www.lampbrother.netTo give you a comparison:InnoDB support for some new features: trading, row-level locks, foreign
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.