Data in a MySQL database are stored in tables, which are collections of related data organized into columns and rows.
Databases are useful for categorically storing information. For example, a company might have a database containing the following tables:
A query is a question or a request for information.
We can query a database to retrieve specific information, resulting in a recordset.
Consider the following query (using standard SQL):
SELECT LastName FROM Employees |
The above query retrieves all the data from the “LastName” column in the “Employees” table.
If you don’t have a PHP server with a MySQL database, you can download both for free from http://www.mysql.com.
MySQL is the de facto standard database system for websites with massive amounts of data and large numbers of users, such as Facebook, Twitter, and Wikipedia.
Additionally, MySQL is highly versatile and can be scaled down to support embedded database applications.