select
教师号,
教师姓名
from 教师表
where 
教师姓名 is not null

基础的select 列名,列名 from 表名 where 条件

null 比较特殊,要用 is null 含null,或者 is not null 不含null