Format the SQL query result in bitsCN.com
SQL query result formatting
Sometimes we need to compare the query results
If the value is A, return
If the value is B, return BB
The following SQL statements passed the test in mysql:
Java
Mysql time operation SQL statement bitsCN.com
SQL statement for mysql time operations
Select * from mytest where (select DATEDIFF (now (), current) = 0); // today's data
SELECT OrderId, DATE_ADD (OrderDate, INTERVAL 2 DAY) AS OrderPayDate
MYSQL injection statement
MYSQL injection statement
Only the role type is used.
Order by XX
Union select .....
1 'Union SELECT 1, CONCAT (user (), 0x3a, database (), 0x3a, version () # The two statements are equivalent.
1 'Union SELECT 1,
MysqlInnoDB note memory bitsCN.com
Mysql InnoDB note memory
InnoDB status
SQL code
Show engine innodb status/G;
Execution result
Type: InnoDB
Name:
Status:
Per second averages calculated from the last 6 seconds
-----------------
BACKGROUND THREAD
-
Install mysql5.6 bitsCN.com in linuxenterprise5
Install mysql 5.6 in linux enterprise 5
Mysql is installed with cmake after mysql 5.5. cmake is an essential tool for mysql 5.5.
Install cmake as follows. download the source code installation
Centos5.9 install mysql5.31 CentOS
BitsCN.com
Install mysql 5.5.31 in centos 5.9
Installing and installing mysql in linux may have various dependencies, and installing mysql in centos may have various dependencies.
[Root @ localhost] # tar xzvf
Mysqlshowstatus command bitsCN.com
Mysql show status command
Command: show status;
Aborted_clients indicates the number of dropped connections because the client fails to properly close the connection.
The number of connection times of the MySQL
Duplicate MySQL auto-incrementing primary key after deletion problem bitsCN.com
Repeated issues after the MySQL auto-incrementing primary key is deleted
This is a problem with a friend of my colleague. The title may be a bit closed. I will
MySql analysis command bitsCN.com
MySql analysis command
Analyze Table
When optimizing SQL statements, MySQL Optimizer must first collect related information, including the cardinality of the table (which can be translated as "hash degree "), it
View the table type InnoDB bitsCN.com in Mysql
Problem description:
MySQL data tables support six types: BDB, HEAP, ISAM, MERGE, MYISAM, and InnoBDB.
These six types are divided into two categories: transaction-safe, including BDB and InnoDB, and
Mysql full-text index bitsCN.com
This article briefly describes the full-text index application example, MYSQL demo version 5.5.24.
Q: When is full-text index applicable?
A: full-text indexing is currently A key technology for big data search.
For
BitsCN.com
Count and overwrite indexes in the MySQL Optimizer
Symptom description
In fact, it is important to note that an optimizer still needs to be improved.
Based on the where condition and the fields in select_list, The Optimizer
Mysql table sharding principle bitsCN.com
Mysql table sharding principles
Mysql table sharding principles
When using mysql in large quantities and with high data access, we will introduce the mysql sharding standards to improve the performance of
MySQL data export and import (mysql internal commands: mysqldump, mysql) mysqldump
BitsCN.com
MySQL data export and import (mysql internal commands: mysqldump, mysql)
Back up Database
1. export a database (all data, table structures,
1. Introduction to apsaradb for bitsCN.com
Currently, frequently used databases include Oracle databases, MySQL databases, Microsoft SQL Server databases, and DB2 databases.The data model is an abstraction of real-world data features.A complete data
Linux forgets mysqlroot password bitsCN.com
Http://zhidao.baidu.com/question/39198255.htmlFollow these steps to reset the MySQL root password:1. first confirm that the server is in a secure state, that is, no one can connect to the MySQL database at
Slow query bitsCN.com caused by incorrect MySQL prefix index
The front-end time is related to a DB Project. alanc reports a query. using indexes is much slower than not using indexes. So I followed up and used explain to look at two different query
10. MySQL getting started summary bitsCN.com
1. connection operations and set operations (continued)
Since mysql does not support full join, I can do this:
Select * from a left join B on a. id = B. idunionselect * from a right join B on a. id =
Accelerate mysqlindex query bitsCN.com with ssd hard drive
Accelerate mysql index query using an ssd hard disk
If the data volume is large and the ssd capacity is not large, you can save the index data to the ssd to store the table data on the
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