使用if判断。if(专业 is null ,'待写入的值','其他值')条件可以写多个
专业
update xs set 专业='信管' where 专业 is null
第6题不是把所有同学的专业设置成信管吗,其实和null值无关,直接update xs set 专业='信管' 就行了