select * from 表名 where 学号 like '%" & 输入值 & "%'"
借用一下楼上的答案:select * from 表名 where 学号 like '%" & 输入值 & "%'" 学号后面的就是附加条件