• 2022-06-06
    检索所有姓“张”、姓“田”的学生信息,可以使用的SQL语句有()。
    A: SELECT
    * FROM student WHERE student_name LIKE('张%'
    OR '田%';
    B: SELECT
    * FROM student WHERE SUBSTRING(student_name,1,1) in('张','田');
    C: SELECT
    * FROM student WHERE SUBSTRING(student_name,1,1)= '张'
    OR SUBSTRING(student_name,1,1)='田';
    D: SELECT
    * FROM student WHERE student_name LIKE '张%'
    OR student_name LIKE '田%';
  • 举一反三