1024programmer Mysql How does mysql query the data of a field in the database?

How does mysql query the data of a field in the database?

How to query a certain field in the database in mysql: use the SELECT statement, use the “SELECT FROM ;” syntax to query; if you want to query multiple fields, use different field names Separate them with a comma “,”.

In MySQL, you can use the SELECT statement to query data. Querying data refers to using different query methods to obtain different data from the database according to requirements, which is the most frequently used and most important operation.

The syntax of SELECT is as follows:

SELECT
 {* | }
 [
 FROM , …
 [WHERE 
 [GROUP BY 
 [HAVING  [{ }…]]
 [ORDER BY ]
 [LIMIT[,] ]
 ]

Among them, the meaning of each clause is as follows: