已知serviceType在1,2,3三个数字之间,我想知道deptId=1的时候,servicetype中没有出现在1,2,3的数字。一番波折后写出这样的语句:select 1 union select 2 union select 3 EXCEPT SELECT serviceType FROM request WHERE deptId = 1;
添加回答
举报
0/150
提交
取消