查询student表中的所有非空email信息, 以下语句正确的是( )
A: Select email from student where email !=null
B: Select email from student where email not is null
C: Select email from student where email <> null
D: Select email from student where email is not null
A: Select email from student where email !=null
B: Select email from student where email not is null
C: Select email from student where email <> null
D: Select email from student where email is not null
举一反三
- 下面哪一个语句,显示没有Email地址的教师姓名() A: Select name from teacher where email=NULL; B: Select name from teacher where email C: Select name from teacher where email is NULL; D: Select name from teacher where emailis not NULL;
- 在student表中显示所有姓马的学生的姓名、生日和Email。下列语句可以实现的( ) A: select sname,birthdate,email from student where sname like ‘马%’ B: select sname,birthdate,email from student where sname rike ‘马.*’; C: select sname,birthdate,email from student where sname like ‘%马‘ D: select sname,birthdate,email from student where sname =’*马*’
- 在Oracle中,有一个教师表teacher的结构如下: 下面哪个语句显示没有Email地址的教师的姓名()。 A: select name from teacher where email=null B: select name from teacher where email<>null C: select name from teacher where email is null D: select name from teacher where email is not null
- 若想查询student表中name为空值的记录,则正确的SQL语句是( )。 A: SELECT * FROM student WHERE name = NULL; B: SELECT * FROM student WHERE name like NULL; C: SELECT * FROM student WHERE name = 'NULL'; D: SELECT * FROM student WHERE name is NULL;
- 若想查询student表中name为空值的记录,则正确的SQL语句是(1.0分) A: select * from student where name = null; B: select * from student where name link null; C: select * from student where name = 'null'; D: select * from student where name is null;