MySQL select from select: select statement

MySQL, like any other relational database management system, has a SELECT statement in its structure. This is not surprising, because databases store information in themselves primarily in order to retrieve it when there is a need for it. The MySQL select from SELECT statement allows you to do this in many different ways, providing a large set of tools.

MySQL installation

MySQL is implemented both under Windows and under Linux. To install MySQL Ubuntu, it is enough to run two commands in the terminal of this OS:

- Sudo apt-get install mysql-server.

- Sudo apt-get install mysql-client.

For MySQL Windows, just download the appropriate installation packages from the official DBMS website and run them.

General structure of the SELECT statement

MySQL select from SELECT :

1. SELECT - ().

2. FROM - .

3. WHERE - , .

, , SQL , (FROM, WHERE ..) , – . MySQL select from SELECT .

mysql select from select




SELECT ALL , . , . – , .





WHERE

, , WHERE – , . , SELECT , . WHERE - , type=’dog’, Edison. . ORDER BY, , .

mysql windows




, WHERE , . , AND OR. , . , , AND, , OR.

ORDER BY

, WHERE SELECT , , . «» ORDER BY. , , . , . : – , ORDER BY, SELECT; - ORDER BY .

mysql ubuntu




(ASC), , ASC DESC.

We examined the basic, but not all, tools of the MySQL select from operator. SELECT, in addition to the above, has many other features that allow you to flexibly and efficiently retrieve data from the database.




All Articles