你可能感兴趣的试题
SELECT XM,XB FROM STUD WHERE SD IN('IS','MA','CS'); SELECT XM,XB FROM STUD WHERE SD NOT IN ('IS','MA','CS'); SELECT XM,XB FROM STUD WHERE SD NOT('IS','MA','CS'); SELECT XM,XB FROM STUD WHERE SD NOT IN(IS,MA,CS);
SELECT XM,XB FROM STUD WHERE SD IN('IS','MA','CS'); SELECT XM,XB FROM STUD WHERE SD NOT IN ('IS','MA','CS'); SELECT XM,XB FROM STUD WHERE SD NOT('IS','MA','CS'); SELECT XM,XB FROM STUD WHERE SD NOT IN(IS,MA,C;
SELECT XM,XB FROM STUD WHERE SD IN("IS","MA","CS") SELECT XM,XB FROM STUD WHERE SD NOT IN("IS","MA","CS") SELECT XM,XB FROM STUD WHERE SD NOT("IS","MA","CS") SELECT XM,XB FROM STUD WHERE SD NOT IN(IS,MA,C
ASSUME CS:CSEG END START MOV CS,CSEG MOV CS,AX MOV AX,CSEG
SELECT * FROM student WHERE sname LIKE'刘 * ' SELECT * FROM student WHERE sname LIKE'刘 $' SELECT * FROM student WHERE sname LIKE'刘%' SELECT * FROM student WHERE sname LIKE'刘&'
ASSUME CS:CSEG END START MOV CS,CSEG MOV AX,CSEG 和MOV CS,AX
SELECT XXB FROM STUD WHERE SD IN ("IS","MA","CS") SELECT XXB FROM STID WHERE SD NOT IN("IS","MA","CS") SELECT XXB FROM STUD WHERE SD NOT("IS","MA","CS") SELECT XXB FROM STUD WHERE SD NOT IN (IS,MA,C
Mno=’CS’ Mno≠’CS’ Mno<>’CS’ Mno IS NOT ’CS’
书名LIKE ’__M_’ 书名LIKE ’__M%’ 书名LIKE ’__M%_’ 书名LIKE ’_%M__’
ASSUME CS CSEG END START MOV CS,CSEG MOV AX,CSEG MOV CS,AX
SELECT XM, XB FROM STUD WHERE SD IN ('IS','MA','CS'); SELECT XM, XB FROM STUD WHERE SD NOT 1N ('IS','MA','CS'); SELECT XM, XB FROM STUD WHERE SD NOT ('IS','MA','CS') SELECT XM, XB FROM STUD WHERE SD NOT IN (IS, MA, C;
SELECT XM,XB FROM STUD WHERE SD IN("IS","MA","CS") SELECT XM,XB FROM STUD WHERE SD NOT IN("IS","MA","CS") SELECT XM,XB FROM STUD WHERE SD NOT("IS","MA","CS") SELECT XM,XB FROM STUD WHERE SD NOT IN(IS,MA,CS)
Sdept=’CS’ Sdept<>’CS’ ’Sdept’=CS ’Sdept’<>CS
SELECT XM,XB FROM STUD WHERE SD IN ('IS','MA','CS'); SELECT XM,XB FROM STUD WHERE SDNOTIN ('IS','MA','CS'); SELECT XM,XB FROM STUD WHERE SD NOT ('IS','MA','CS'); SELECT XM,XB FROM STUD WHERE SD NOT IN (IS,MA,C;
SELECT XM,XB FROM STUD WHERE SD IN (’IS’,’MA’,’CS’); SELECT XM,XB FROM STUD WHERE SDNOTIN (’IS’,’MA’,’CS’); SELECT XM,XB FROM STUD WHERE SD NOT (’IS’,’MA’,’CS’); SELECT XM,XB FROM STUD WHERE SD NOT IN (IS,MA,CS);
WHERE和HAVING语句都引导搜索条件,它们是等价的。 WHERE语句和HAVING语句不能同时使用在一个查询操作中。 HAVING语句用于组或聚合函数的搜索条件,它常用于GROUPBY子句后。 一般说,WHERE语句的效率要高于HAVING语句,所以更好使用WHERE引导搜索条件
SELECT XM.XB FROM STUD WHERE SD IN ("IS","MA","CS") SELECT XM.XB FROM STID WHERE SD NOT IN("IS","MA","CS") SELECT XM.XB FROM STUD WHERE SD NOT("IS","MA","CS") SELECT XM.XB FROM STUD WHERE SD NOT IN (IS,MA,CS)
SELECT XM, XB
FROM STUD
WHERE SD IN ('IS','MA','CS'); SELECT XM, XB
FROM STUD
WHERE SD NOT 1N ('IS','MA','CS'); SELECT XM, XB
FROM STUD
WHERE SD NOT ('IS','MA','CS') SELECT XM, XB
FROM STUD
WHERE SD NOT IN (IS, MA, CS);
ASSUME CS CSEG END START MOV CS,CSEG MOV AX,CSEG
MOV CS,AX