Preface MySQL is the most popular relational database management system. In terms of WEB applications, MySQL is one of the best RDBMS (Relational Database Management System) application software. MySQL is a relational database management system developed by the Swedish company MySQL AB and currently owned by Oracle. MySQL is a relational database management system that stores data in different tables instead of putting all data in one large warehouse, which increases speed and flexibility. Query data In the MySQL database, the select statement is used to query data. The syntax is:
Using select query has the following characteristics:
For example: SELECT name,age,class,id FROM classroom; Example: ①Query constants SELECT 100; Query results: ②Query expression SELECT 100+6; Query results: ③Query fields Query a single field SELECT last_name FROM employees; Query results: Query multiple fields SELECT salary,last_name,first_name FROM employees; Query results: Query all fields SELECT * FROM employees; Query results: ④Query function Commonly used query functions are: SELECT DATABASE();#Query the currently called databaseSELECT VERSION();#Query the database versionSELECT USER();#Query the current user SummarizeThe basic query statements in the MySQL database are the most commonly used and basic statements when using the database. Proficiency in this part of the content also lays the foundation for learning other content of the MySQL database. You may also be interested in:
|
<<: Usage scenarios and source code analysis of Vue advanced components functional components
During the use of mysql, it was found that the nu...
Table of contents introduce Usage scenarios Sourc...
View the engines supported by the current databas...
1. Vector Map Vector graphics use straight lines ...
Table of contents 1. Preparation Pull the redis i...
Table of contents Preface Local storage usage sce...
When building a B/S system interface, you often en...
In web development, you often encounter characters...
When you get a new Linux server, you generally ha...
JavaScript can do a lot of great things. This art...
Table of contents Configuration nfs server (nfs.s...
Preface In daily code development, there are many...
1 Download MySQL8 from the official website and i...
Configuration file that needs to be loaded when t...
Since the default Linux kernel parameters are bas...