use stuinfo
select*from sc
select sno,sname from stu
--,,,as 属性名select sname,2021-age as birth_date from stu
select sno from sc
--distinct去重selectdistinct sno from sc
--查找某姓名学生信息select*from stu where sname='小十'select*from stu where sname like'小十'select sno from sc where cno='20201'and grade>80select sname,age from stu where age>=18and age<=19select sname,age from stu where age between18and19--in多个orselect*from stu where mno !=3select*from stu where mno=1or mno=2or mno=4select*from stu where mno in(1,2,4)select*from stu where mno notin(1,2,4)--%通配符,模糊查询select*from stu where sname like'彭%'--_占位select*from stu where sname like'_小%'select*from stu where sname like'%小%'select*from sc where grade isnull