In mysql, if we want to query records, we will use the select statement. Next I will summarize the various operations on the mysql select statement. If you need to learn more, please do not go to the reference.
The most common database operations
The basic syntax for a SELECT statement in MySQL is:
以下是引用片段: SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [HIGH_PRIORITY] [DISTINCT|DISTINCTROW|ALL] select_list [INTO {OUTFILE|DUMPFILE} 'file_name' export_options] [FROM
The basic syntax of the SELECT statement in MySQL is:
The following is a reference clip:
SELECT [STRAIGHT_JOIN] [SQL _SMALL_RESULT]
[SQL _BIG_RESULT] [HIGH_PRIORITY]
[DISTINCT | DISTINCTROW | ALL]
Select_list
[INTO {OUTFILE | DUMPFILE} 'file _ name'
The most common operation of database is "plug, check, delete, change". In the previous log, I introduced the MySQL inserts INSERT statement, also introduced the update UPDATE statement for everyone, as well as deletes the statement delete and the
This paper is a fast and precise grasp of the SELECT statement in MySQL database.
The basic syntax for a SELECT statement in MySQL is:
The following is a reference fragment:
SELECT [Straight_join] [Sql_small_result]
[Sql_big_result]
From this basic syntax, we can see that the simplest SELECT statement is SELECTselect_list. In fact, you can use this simplest SELECT statement to complete many functions you want, first, you can use it to perform any operation supported by MySQL.
The basic syntax for a SELECT statement in MySQL is:
The following is a reference fragment:
SELECT [Straight_join] [Sql_small_result]
[Sql_big_result] [High_priority]
[distinct| distinctrow| ALL]
Select_list
[Into {outfile| DumpFile} '
3.3.5 Create or delete the database directly in the database directory, just create a directory with the same name as the database under the MySQL data directory, and delete the database by deleting the directory. So, you can do this directly,
MySQL is the most basic SQL syntax. For more information, see.
The most basic SQL syntax/Statement of MySQL. For more information, see.
DDL-Data Definition Language (Create, Alter, Drop, DECLARE)
DML-data manipulation language (Select, Delete,
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.