select sid,sname from score where sid between 2 and 5;
复制代码
pimg src="https://img2023.cnblogs.com/blog/3167472/202305/3167472-20230516154044843-1004849209.png" alt="" loading="lazy"/ph3 id="24空值查询"2.4、空值查询/h3p在数据库中,有些列可能为空值,空值不是0,也不是空字符串,在 mysql 使用 is null 来判断字段是否为空/pp语法:/p