Usage of event in mysql
I. Basic conceptsThe event concept was introduced in MySQL. The event is a time trigger, which is different from triggers event triggering. The event is similar to a linux crontab scheduled task for time triggering. It can be
How to use SQL to find two columns with different values in the table bitsCN.com
The following two tables have the same structure. use SQL to find columns with different values.
Student_1
NAME
AGE
SCORE
Peter
26
100
MySQL Performance Optimization Tips help your database bitsCN.com you have completed your brand new applications, everything works like a charm. To use your network. Everyone is happy.
Then, suddenly, an explosive user killed your MySQL server and
MySQL study Note 4: integrity constraints restricted field bitsCN.com integrity constraints are to limit the field, so as to meet the field to achieve our expected results, such as the field contains the default value, cannot be NULL, etc.
Directly
MySQLOrderBy index optimization method bitsCN.com although order by does not match the index ORDER accurately, the index can still be used, as long as the unused index part and all the additional order by fields are included in the WHERE
How to merge two fields in mysql: bitsCN.com for example: select (a + B) as c from table
Both types are varchar type, but the display is incorrect.
Until concat ()
Concat functions in MySQL
The following example describes how to use the concat
After MySQL5 is installed, it cannot be started (Startservice is not supported). solution Summary: MySQL 5.1.48 or MySQL 5.5.8 installed on bitsCN.com. click Execute After configuration, but the Start service step cannot be performed. Check that the
There are three types of MySQL Stored Procedure parameters (in, out, inout) bitsCN.com
I. MySQL Stored Procedure parameters (in)MySQL stored procedure "in" parameter: similar to the value passing of function parameters in C language, MySQL stored
Introduction to bitsCN.com
MySQL is one of the most popular free open source programs in history. It is the backbone of the database for thousands of websites, and can®As a strong proof of exponential growth of the Internet over the past 10
Mysqlnotin, leftjoin, ISNULL, NOTEXISTS efficiency issue record bitsCN.com
Comparison of not in, JOIN, is null, not exists efficiency
Statement 1: select count (*) from A where A. a not in (select a from B)
Statement 2: select count (*) from A left
Mysql returns the names of all tables in a database, and the column name data type remarks bitsCN. comdesc table name;
Show columns from table name;
Describe table name;
Show create table name;
Use information_schema
Select * from columns where
MySQL configuration file my. cnf example most detailed translation bitsCN.com # BEGIN CONFIG INFO
# DESCR: 4 gb ram, only InnoDB, ACID, a small number of connections, large queue load
# TYPE: SYSTEM
# END CONFIG INFO
#
# This mysql
MySQL study NOTE _ 3_MySQL create a data table (in) bitsCN. comMySQL create a data table (in) III. data field attributes
1. unsigned [unsigned]
Space can be doubled, for example,-128 ~ 127 increase to 0 ~ 255
Note: only numeric fields can be used.
2.
After installing mysql in CentOS6, reset the root password to CentOS6CentOS.
BitsCN.com
After installing mysql on CentOS6.4, I cannot enter through root because the root password is not set during installation. it seems that I have an initial random
MySQL study NOTE _ 9_MySQL advanced operations (on) bitsCN. comMySQL advanced operations (on)
I. MySQL table replication
Create table t2 like t1; # Copy the table structure. t2 can learn all the table structures of t1.
Insert into t2 select * from t1
Summary of differences between utf8_unicode_ci and utf8_general_ci in Mysql
1. official documentsThe following excerpt describes utf8_unicode_ci and utf8_general_ci in the Mysql 5.1 Chinese manual:
Currently, utf8_unicode_ci rules only support
[MySQL replication] quick setup of mysql databases below 20 GB
Because the data capacity is smaller than 20 GB, using mysqldump for full-database export has little impact on the business. Therefore, this mode is used to build a slave database:
PS:
MySQL command learning (1) today, let's take a look at common MySQL commands (the command keywords in MySQL are case insensitive ):
(1) show databases; displays all databases in MySQL
(2) create database dbname; create database dbname in MySQL
For
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