itgle.com

使用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)=“王”

题目

使用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)=“王”


相似考题
更多“使用SQL语句从表STUDENT中查询所有姓王的同学的信息,正确的命令是:______。A.SELECT*FROM STUDENT ”相关问题
  • 第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'%张%'


    A

  • 第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 '周_'


    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


    select * from student limit 25;

  • 第4题:

    从学生表student查询学生的所有信息,正确的语句是______。

    A.SELECT # FROM student

    B.SELECT * FROM student

    C.SELECT ? FROM student

    D.SELECT _ FROM student


    select * from student limit 25;

  • 第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'%张%'


    SELECT sno,sname FROM student WHERE sname LIKE N'张%