MySQL can run in different SQL mode modes. SQL mode defines the SQL syntax and data verification that MySQL should support!I. Setting method:
[Mysqld] -- Add the following settings
Transaction-isolation = serializableSQL-mode = ANSI
Ii. Mode
MySql SQL optimization tips and mysqlsql tips
One day I found that the execution speed of an SQL statement with inner join was not very slow (0.1-0.2), but it did not reach the ideal speed. The two tables are associated, and the associated fields
MySQL supports constant transfer for expression simplification, as shown in the following example:Create Table 't1 '('Id1' int (11) not null default '0 ','A1' int (11) default null,'B1 'int (11) default null,Primary Key ('id1 ')) Engine = InnoDB
Objective
I believe we all know that implicit type conversions have the risk of being indexed, and that in the case of high concurrency and large amounts of data, the result of an index is very serious. Dragging the database down, and then crashing
The MySQL database not only provides a server-side application for the database, but also provides a large number of client toolsprocedures, such as mysql,mysqladmin,mysqldump and so on, are familiar to everyone. Although some people haveHave a
MySQL supports constant transfer for expression simplification. For example: CREATETABLE 't1' ('id1' int (11) NOTNULLDEFAULT
MySQL supports constant transfer for expression simplification. For example, create table 't1' ('id1' int (11) NOT NULL
Basic Data Types of MySQL Databases
Integer type
Numeric data types are mainly used to store numbers, including:
TINYINT, SMALLINT, MEDIUMINT, INT (INTEGER), BIGINT.
The following example shows the data space occupied by various types. Note that my
One, MySQL is installed in the configurationI was through the way Baidu cloud disk download. Recommended login Baidu Cloud Terminal, and then click the link below, select the version to install, unzip the installation.Http://www.h2ero.cn/pan/share/17
If you are importing the Chinese data, my MySQL set UTF8 character set, so you want to import the Xxx.txt file to save the Utf-8 character set, command load Data infile "D:/websites/sxxxx/test1.txt" Ignore into table ' names ' fields terminated by ',
The limit for total index length is:
The InnoDB internal maximum key length is 3500 bytes, but MySQL itself restricts this to 3072. (1024 bytes for non-64-bit builds before MySQL 5.0.17, and for all builds before 5.0.15.)
In the UTF8 character set,
1. Show CHARACTER set shows all available character sets' UTF8 ' ; +---------+---------------+-------------------+--------+| Charset | Description | Default Collation | MaxLen |+---------+---------------+-------------------+--------+| UTF8 | utf-83 |
Oracle access MySql via unixODBC by DBLINK: I asked how to connect oracle to remote mysql. I used hsodbc before, but I cannot display the fields with different attributes. oracle does not seem to have a transparent gateway for mysql. Is there any
MySQL 5.7.21 installation and password graphic configuration tutorial, MySQL 5.7.21 graphic
The installation and password setting tutorial for MySQL5.7.21 is as follows:
Official Reference Manual
1. Unzip the MySQL 5.7.20 installation package, such
Description of the meaning of N and M in MySQL Data Type DECIMAL (N, M), mysqldecimal
My colleague asked me what the meaning of N and M in the MySQL Data Type DECIMAL (N, M). Needless to say, M is obviously the DECIMAL place, but is N the maximum
MySQL floating-point and fixed-point types can be expressed by the type name plus (M, D). M indicates the total length of the 20540; D indicates the length after the decimal point, M and D are also called precision and scale. for example, float (9999
Explain can analyze the execution of the select statement, that is, the "Execution Plan" of MySQL.
Type Column
MySQL finds the required rows in the table. Including (from left to right, from worst to best): | All | index | range | ref | eq_ref |
Explain syntax EXPLAINSELECT ...... Variant: 1. EXPLAINEXTENDEDSELECT ...... Decompile the execution plan into a SELECT statement and run SHOWWARNINGS to obtain the query statement optimized by the MySQL optimizer. 2. EXPLAINPARTITIONSSELECT ......
MySQLCreate a stored procedure
(1). Format
Format of MySQL stored PROCEDURE creation: create procedure process name ([process parameter [,...])[Features...] process body
Here is an example:
Mysql> DELIMITER //
Mysql> create procedure proc1 (OUT s
16. Simple SQL Optimization for mysql partitions 1. SQL Optimization for mysql partitions
1. use show session status like '% Com _ %'; to view the execution frequency of each currently connected SQL statement: show global status like '% Com _ % ';
Navicat can use ntunnel_mysql.php as a proxy to connect to the MySQL server. www. navicat. commanualonline_manualennavicatrv_manualHTTPS... is there an open-source alternative that allows mysql command lines to connect to MySQL server over http...
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.