In the borrowing table and the reader table there is such a relationship, if you add a data in the borrowing table, the corresponding cumulative borrowing field in the reader table is increased by 1, if you delete a data in the borrowing table, the
First login: Mysql-u root-h localhost-pUse MySQL #打开mysql数据库#将host设置为% means that any IP can be connected to MySQL, but you can also designate host as an IPUpdate user set host= '% ' where user= ' root ' and host= ' localhost ';Flush privileges;
Database introduction, Common classification
Getting started with MySQL
MySQL installation configuration
MySQL multi-instance installation configuration
MySQL Common basic commands
MySQL database backup and recovery
MySQL Log
Character Design specification:1. Select the appropriate character set, the short character set is more conducive to transport and storage: usually use the UTF8 character set. If you confirm that the system only needs to support English characters,
MySQL supports the default syntax for querying results everywhereSelect: From table to outfile "Filepath\filename.txt";If you encounter Error 1290 in the process of executionor set this in the system variable, you need to enter into the Mysql.ini to
1. Create a database with tools Scrapy2. Create a Douban table in the Scrapy databaseint primary key auto_increment, name varchar (+) NOT NULL, author varchar () null, press Varc Har (+) NULL, date varchar (() NULL, page varchar () NULL, price
One. mysql Loginno mysql.sock . mysql-u Root - H 192.168.0.1-pTwo. Turn on MySQL service1, mysqld daemon startMysqld is the daemon for MySQL, which starts by reading the configuration parameters in the [mysqld] and [Server] groups in the my.cnf
First:Check if Bin_log is turned onMysql> Show variables like ' Log_bin ';+---------------+-------+| variable_name | Value |+---------------+-------+| Log_bin | On |+---------------+-------+How does the Binlog function open?[[email protected] 3306]#
In the MySQL in statement is the appearance and the inner table as a hash connection, and the EXISTS statement is the external loop loop, each loop loop and then query the internal table. It is not accurate to say that exists is more efficient than
Pessimistic lock and optimistic lock are two common methods of resource concurrent lock design, and also a very basic concept in concurrent programming. In this paper, the two common locking mechanisms in the database data on the implementation of
MySQL union and order by implementation method at the same time, mysqlunion
In MySQL, union and order by can be used together, but some minor problems need to be paid attention to during use. The following is an example. First, let's look at table t1
The sorting method of group_concat () function in MySQL, mysqlgroup_concat
The parameters of the group_concat () function can be directly sorted by order. 666 ..
The following is an example. First, let's look at table t1 below.
For example, we
Navicat for MySQL: a simple method for exporting table structure scripts. navicatmysql
Use the MySQL visualization tool Navicat to export the MySQL table structure script.
1. Right-click Database> Data transmission in Navicat ).
2. Select the
Differences between declare and set variables in MySQL stored procedures, mysqldeclare
The variables defined by declare and those defined by @ set are often seen in the stored procedure. In short, declare defines local variables and @ set defines
Mysql deletes record statement, mysql deletes record statement
For example:Id name value1 a pp2 a pp3 B iii4 B pp5 B pp6 c pp7 c pp8 c iiiId is the primary keyThis result is required.Id name value1 a pp3 B iii4 B pp6 c pp8 c iiiMethod 1Delete
Mysql left join, right join, inner join Usage Analysis, innerjoin
The following is an exampleTable A records the following:AID aNum1 a200501112 a200501123 a200501134 a200501145 a20050115Table B records the following:BID bName1 20060324012 20060324023
[High-Performance MYSQL post-read casually] about the transaction isolation level, after mysql readsI. Lock types
There are many types of locks in MySQL, including common table locks and row locks, and new Metadata locks. Table locks apply locks to
What are stored procedures and triggers, and stored procedure triggers?
The simplest way is to define a series of operations in SQL server. You only need to call them to complete the corresponding operations.==========================================
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