A query is a question or a request.
With MySQL, we can query a database for specific information and have a recordset returned.
Look at the following query:
SELECT LastName FROM Persons |
The query above selects all the data in the "LastName" column from the "Persons" table, and will return a recordset like this:
LastName |
Hansen |
Svendson |
Pettersen |