1) READ UNCOMMITTED: Read data that has not yet been committed: no problem is solved2) Read Committed: Reads the data that has been submitted: can resolve dirty read----Oracle Default3) Repeatable READ: Reread read: Can resolve dirty read and
1.WITH ROLLUP: Statistical data is performed on a group basis.Example: First grouping on the name field and then counting on a group basisMysql>SELECT Name,SUM(Singin) AsSingin_count from Employee_tbl GROUP by name with ROLLUP;+--------+-------------
One, pull the MySQL image fileDocker pull MySQLSecond, view the imageDocker imagesIii. Creating a configuration file directoryMkdir/data/docker/mysql/{master,slave}-PVIv. master/slave configuration filesMaster:/data/docker/mysql/master/my.cnf[Mysqld]
Let's start by talking about the primary key and the unique index: a table of one database has only one primary key , and a primary key cannot repeat a unique index: a single table on a database can have multiple , just the value on the unique index
To use Django for project development recently, you need to use the Mysql-python module.In the local installation of the environment when the error occurred,unable to find Vcvarsall.batFind a lot of information on the Internet, found that the window
Change permissionsUse grant all privileges to change the user's remote permissions for some librariesSyntax templatesGrant all privileges the on Library name. Table name to ' user name ' @ ' IP address ' identified by ' password ' with GRANT
First, the successful index optimization
1. The table data is as follows:
2. The query statement is as follows:
Explain select ID, age, level from employee where Dpid = 1 and age = of order BY
Extra:using where; Using Filesort
Execute a stored procedure using PythonExecute a stored procedure using Python [Part 2]:
1. Execute the stored procedure to get the result set of the stored procedure2. Set the return value to the @_ stored procedure name _ Number =
#!
I. List of permissionsSelect_priv. Determines whether the user can select data through the Select command.Insert_priv. Determines whether the user can insert data through the Insert command.Update_priv. Determines whether the user can modify
The traditional operations in relational data operations--and (UNION), Cartesian product (Cartesian product), connection (join).1. and (UNION)" and " is to merge tables with the same number of fields and the same field type.Number of records merged =
1.WITH ROLLUP: Statistical data is performed on the basis of the Group field.Example: First group on the Name field, then some field statistics on the basis of the grouping, the table structure is as follows:CREATE TABLE' Test ' (' Id ')int( One)
One, why use trigger 1. What is a trigger
Triggers are one of the MySQL database objects that need to be declared, executed, etc., the execution of the trigger is not called by the program, nor is it started manually, but is triggered and
Data Query LanguageSELECT column name 1, column Name 2 ... from table name [where condition]Query all fields use * to isolate all records of a table without a Where condition=//Assignment and judgment are! = <>//Two types not equal to =OR OR | |and &
#服务器端 TipsThe Vervice already exists!The current server installed#mysqld service does not startSolutionsRemoving the original MySQL serviceMysqld-remove MySQLOrSC Delete MySQLRe-registering the MySQL serviceMysqld–install mysql–defaults-file=
Since the work of the IT Internet has been a few years ago, I was really lazy, never write blog, never summed up the work experience, led to their own technical upgrading is very slow, growth is very slow, serious began to write blog is from the
What is a stored procedureSimply put, is a set of SQL statements, powerful, can implement some more complex logic functions, similar to the Java language method;PS: The stored procedure is a bit like a trigger, a set of SQL sets, but the stored
Centos7 MySQL read and write separate MySQL introductionMySQL is a relational database management system developed by the Swedish MySQL AB company and is currently part of Oracle's product portfolio. MySQL is one of the most popular relational
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