What does no database selected mean?
is because you did not select the database where the newly created table is located. no database selected means that no database was selected.
Recommended: "mysql video tutorial"
Solution: Use the use statement before creating the table, format: use database_name, so that the database is opened and you can Database operations.
Extended information:
The SQL language used by MySQL is the most commonly used standardized language for accessing databases. MySQL software adopts a dual licensing policy and is divided into community version and commercial version. Due to its small size, fast speed, low total cost of ownership, and especially the characteristics of open source, MySQL is generally chosen as the website database for the development of small and medium-sized websites.
The above is the detailed content of no database selected means. For more information, please follow other related articles on the PHP Chinese website!