题解 | #查找除复旦大学的用户信息#
查看学校名称中含北京的用户
http://www.nowcoder.com/practice/95d9922b1e2a49de80daa491889969ee
字符匹配 1、_ :匹配一个字符 例如:查找姓张且名字为三个字的学生信息 select * from student where name like '张__'
2、%:匹配0个或多个字符串 例如:查找姓张的学生的信息 select * from student where name like '张%
3、[]匹配框中的任意一个字符 例如查找姓李、张、宋的学生信息 select * from student where name like '[张李宋]%'
4、不匹配[]中的字符 例如找出除姓张、唐之外的学生信息 select * from student where name like '[^张唐]%'
5、查询姓名中第二个字为大或小的学生信息 seletc * from student where name like '_[小大]%'