很简单啊,限定第二个字和第三个字,第一个字随便就用“_”就好了,最后加上%表示可以查四个字甚至更多字符的name:select stuno,stuname,sex from student where stuname like '_[^1-7][^丰]%'