This article focuses on the role of the view in MySQL and the question of whether you can change it.
A view is a virtual table that is not the same as the table that contains the data, and the view contains only queries that retrieve data dynamically when used, and does not contain any columns or data. Using views
We talked about the view created in the front, today this tutorial we will talk about the MySQL tutorial view changes and updates.
View Modifications .
Grammar:
Alter [Algorithm ={undefined |merge | temptable}] View view_name [(collist)] as SELECT [with [Case |local] C
Tags: style color os SP data on Code BS EFThe first is to create the viewCREATE algorithm=undefined definer= ' root ' @ ' localhost ' SQL SECURITY definerVIEW ' New_view 'As (select ' Girls ') ' id ' as ' id ', ' Girls '. ' Name ' as ' name ', ' Girls '. ' Age ' as ' age ', ' girls ', ' level ' as ' level ' from ' Girls ';The red code is automatically generated by MySQL,The SQL that creates the view general
Mysql logs start and view the following types of mysql logs:
Error log:-log-err
Query log:-log
Slow query log:-log-slow-queries
Update log:-log-update
Binary log:-log-bin
By default, all logs are created in the mysqld data directory. By refreshing logs, you can force mysqld to close and reopen the log file (or switch to a new log in some cases ). When you execute
A view is a virtual table exported from one or more tables. A view is like a window in which you can view the data provided by the system. This article introduces the MySQL Getting Started Tutorial (7). For more information, see
Related reading:
MySQL Getting Started Tutori
View mysql database version summary, mysql database
When you take over the management of a mysql database, you first need to check the maintained mysql database version. When a developer asks you about the mysql database version
Tags: har Specify table specifies sch for ROR ORM Mys DataThis article transferred from: http://blog.sina.com.cn/s/blog_4c197d420101fbl9.html View the size of all libraries mysql> use INFORMATION_SCHEMA; Database changed mysql> select concat (Round (sum (data_length/1024/1024), 2), ' MB ') as DATA from TABLES; +----------+ | Data | +----------+ | 104.21MB | +----
Tags: table from data span operating system to define documents by enterEnvironment Description:
MySQL version: 5.5.57-log
Operating system version: Red Hat Enterprise Linux Server Release 6.6 (Santiago)
Requirements Description:To view a defined SQL statement for a viewQuery through the Views table under the INFORMATION_SCHEMA database:SELECT table_name, table_schema, view_defin
This article mainly introduces how to view, create, and delete indexes in MySQL, and analyzes the functions of indexes in MySQL in detail based on the instance form, you can also learn how to view, create, and delete indexes. you can refer to the following example to learn how to v
View mysql installation path in Linux
1. view the file installation path
Since there are more than one place for software installation, let's first check all the paths (addresses) for file installation ).
Mysql is used as an example. For example, if I have installed mysql
(1) For the configuration file path, sometimes I find that although I tried to modify some variables in the configuration file, they did not take effect. It was later discovered that the modified file was not the configuration file read by the MySQL server. If you do not know the path of the configuration file currently used by MySQL, you can view it as follows:
To be a qualified programmer, in addition to writing beautiful code, it is also indispensable to be familiar with the database. The following summarizes how to view and modify the MySQL database table storage engine: to be a qualified programmer, in addition to writing beautiful code, it is also indispensable to be familiar with the database. The following summarizes how to
Two ways for MySQL to view the current running status: bitsCN.com
Method 1: Use the mysql command to view
In MySQL, you can view common system information directly by checking the status, as shown in the following example:
Reprinted: mysql status view QPSTPS cache hit rate view Reprinted: http://blog.163.com/ji_1006/blog/static/106123412013101421530142/
View the running mysql status Monitor running mysql. one of the following methods is to
How to View mysql connection parameters bitsCN.com
How to View mysql connection parameters
1. view the details of all current connections:
./Mysqladmin-uadmin-p-h10.140.1.1 processlist
2. view only the current number of
View the mysql execution plan bitsCN.com
View the execution plan of mysql. the SQL statement is executed for 4 minutes, and the message_message contains 1000 million data. the execution plan of mysql is learned.
Select * from message_message where id in (select message_id
Fr
give a practical example: CREATE TABLE User_info (user_id int NOT NULL, user_name varchar () is not null); INSERT into User_info values (1, ' AA '), (2, ' BB ') ...//Suppose we insert 10,000 data messages ... Then we want to query the data information of id>5000 and id The final result will output the data in the ID 5000-8000, and will also output the query time information .... 2. View Views are divided into normal and
Original works of Lin Bingwen Evankaka. Reprinted please indicate the source http: blogcsdnnetevankaka Abstract: This article focuses on the definition, principle, and usage, creation, and deletion of visual charts in MySql.
1. View overview
A view is a virtual table whose content is defined by the query. Like a real table, a
Enable mysql slow query log and run mysqldumpslow to view mysqldump
BitsCN.com
Enable mysql slow query logs and run the mysqldumpslow command to view the logs.
The mysql server has a function to detect which SQL statement query is slow, that is, slow query slowlog. now we
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.