Question stem:
Find the name, nationality and contact number of all students with the surname "Li".
Tip: Please use the SELECT statement to answer.
Table Structure:
The SQL statement defining the table structure is as follows:
CREATE TABLE student (
sno varchar(6) NOT NULL ,
sname varchar(10) ,
sex char(2) ,
nation char(2) ,
pnum char(18) ,
birth date ,
phone char(11) ,
dept varchar(20) ,
PRIMARY KEY (sno)
) ;
table sample
Table example corresponding to the above table structure:
student table:
![](https://img-blog.csdnimg.cn/img_convert/95e2bfa990335af02fb1cfa0c13db363.png)
Sample output:
Sample output:
![](https://img-blog.csdnimg.cn/img_convert/e0499fc6183916a38c9e12087a723da4.png)
Code length limit 16 KB
Time limit 400 ms
DatabaseMySQL
The result output requires a strict comparison of the order and data
select sname, nation, phone
from student
where sname like "李%"
![](https://img-blog.csdnimg.cn/img_convert/94782df2a2ad0bc1401317bd865b91e9.png)