Suppose you have many pets in your home (your "zoo"), and you want to track various types of information about them. You can save your data by creating tables and loading them with the required information. You can then retrieve data from the tables to answer questions about different types of animals. This section shows how to do all of these things: · Create a database · Create database tables · Load data into database tables · Retrieve data from tables in various ways · Use multiple tables Zoo databases are simple (by design), but not difficult Think of it as a real-world situation where something like a database might be used. For example, a farmer could use such a database to track livestock, or a veterinarian could use it to track sick animal records. The zoo distribution containing some queries and sample data that will be used in later chapters is available from the MySQL website. There are tar compression format (//m.sbmmt.com/) and Zip compression format (//m.sbmmt.com/). Use the SHOW statement to find out what databases currently exist on the server: mysql> SHOW DATABASES;
1. MySQL Getting Started Tutorial 3 - Create, Select and Use Databases
Introduction: Suppose you have many pets in your home (your "zoo") and you want to keep track of various things about them type of information. You can save your data by creating tables and load them according to the required information. Then you can retrieve the data from the table...
2. mysql creation, Select and use a database
Introduction: Assume that in your home (your "zoo") you have There are many pets, and you want to track various types of information about them. You can save your data by creating tables and loading them with the required information. You can then retrieve data from the tables to answer questions about different types of animals. This section shows how to do all of these things:
【Related Q&A recommendations】:
The above is the detailed content of Related recommendations about creation and selection. For more information, please follow other related articles on the PHP Chinese website!