若要求查找S表中,姓名的第一个字为王的学生学号和姓名。下面列出的SQL语句中,哪个是正确的( )
(A)SELECT Sno,SNAME FROM S WHERE SNAME=′王%′
(B)SELECT Sno,SNAME FROM S WHERE SNAME LIKE ′王%′
(C)SELECT Sno,SNAME FROM S WHERE SNAME LIKE ′王_′
(D)全部
参考答案
继续答题:下一题
(A)SELECT Sno,SNAME FROM S WHERE SNAME=′王%′
(B)SELECT Sno,SNAME FROM S WHERE SNAME LIKE ′王%′
(C)SELECT Sno,SNAME FROM S WHERE SNAME LIKE ′王_′
(D)全部