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
1: readonly is to lock this control so that it can...
Preface Today I encountered a very strange proble...
Download and install MySQL 8.0.22 for your refere...
Today I made a menu button. When you move the mous...
1. Today, when I was making a page, I encountered ...
Table of contents 1. Parent components and child ...
There are many loopholes in the simple seamless s...
Pseudo-elements and pseudo-classes Speaking of th...
The layout of text has some formatting requiremen...
Keepalive is often used for caching in Vue projec...
HTML implements 2-column layout, with fixed width...
Web design, according to personal preferences and ...
Two methods to implement Mysql remote connection ...
the difference: 1. InnoDB supports transactions, ...
Table of contents View network configuration View...