SQL select query statement collection (single table query, multi-table join query)

Usage of select query statement (including data query and linked table query)

Environment: centos7, mysql version as shown in the figure below:
insert image description here
The following experimental examples are based on a student table student and a grade table score. The following are the structures and table data of the two tables:
1. student
insert image description here
insert image description here

2. score
insert image description here
insert image description here
1. Single table query

  • Query all fields; select * from table name;
mysql> select * from student;
+-----+-----------+----

Guess you like

Origin blog.csdn.net/HelloWorld_4396/article/details/127793504