多选题
查询除了计算机18001班之外的所有学生信息,正确的SQL语句是()。
A
select * from student where not class='计算机18001'
B
select * from student where class<>'计算机18001'
C
select * from student where class!='计算机18001'
D
select * from student where not class is '计算机18001'
答案解析
正确答案:ABC
解析:
查询除了计算机18001班之外的所有学生信息,正确的SQL语句是()。 A.select * from student where not class='计算机18001' B.select * from student where class<>'计算机18001' C.select * from student where class!='计算机18001' D.select * from student where not class is '计算机18001' 答案:ABC
解析: 这个问题需要查询除了计算机18001班之外的学生信息。在SQL中,"!="、"<>"和"!="都表示不等于的关系操作符,所以选项A、B、C都可以正确地表示这个查询条件。
相关知识点:
特定学生信息查询要记好
