使用SQL语句从表STUDENT中查询所有姓王的同学的信息,正确的命令是:______。
A.SELECT*FROM STUDENT WHERE LEFT(姓名,2)=“王”
B.SELECT*FROM STUDENT WHERE RIGHT(姓名,2)=“王”
C.SELECT*FROM STUDENT WHERE TRIM(姓名,2)=“王”
D.SELECT*FROM STUDENT WHERE STR(姓名,2)=“王”
第1题:
从数据表student中查询张姓的所有学生,正确的SQL语句是()。
A.SELECT sno,sname FROM student WHERE sname LIKE N'张%'
B.SELECT sno,sname FROM student WHERE sname LIKE N'%张%'
C.SELECT sname FROM student WHERE sname = N'张%'
D.SELECT sname FROM student WHERE sname = N'%张%'
第2题:
从Student表检索姓周的学生,对应的SQL语句是()。
A.Select * From Student Where Sname like '周%'
B.Select * From Student Where Sname like '%周'
C.Select * From Student Where Sname like '_周'
D.Select * From Student Where Sname like '周_'
第3题:
1、从学生表student查询学生的所有信息,正确的语句是______。
A.SELECT # FROM student
B.SELECT * FROM student
C.SELECT ? FROM student
D.SELECT _ FROM student
第4题:
从学生表student查询学生的所有信息,正确的语句是______。
A.SELECT # FROM student
B.SELECT * FROM student
C.SELECT ? FROM student
D.SELECT _ FROM student
第5题:
15、从数据表student中查询张姓的所有学生,正确的SQL语句是()。
A.SELECT sno,sname FROM student WHERE sname LIKE N'张%'
B.SELECT sno,sname FROM student WHERE sname LIKE N'%张%'
C.SELECT sname FROM student WHERE sname = N'张%'
D.SELECT sname FROM student WHERE sname = N'%张%'