This topic requires writing SQL statements,
Retrieve the student names and classes of boys whose names contain "Ming" in the students table.
Tip: Please use the SELECT statement to answer.
Table Structure:
Please write the SQL statement that defines the table structure here. For example:
CREATE TABLE students (
sno char(7) ,
sname char(8) NOT NULL,
class char(10),
ssex char(2),
bday date ,
bplace char(10) ,
IDNum char(18) ,
sdept char(16),
phone char(11),
PRIMARY KEY (sno)
) ;
table sample
Please give a table sample corresponding to the above table structure here. For example
students table:
Sample output:
Please give a sample output here. For example:
Code length limit 16 KB
Time limit 400 ms
DatabaseMySQL
The result output requires a strict comparison of the order and data
select sname, class
from students
where sname like "%明%"