mysql 查询表 t_employee 薪资 salary 高于15000或者did为1的员工两个条件不能同时成立
SELECT * FROM t_employee WHERE salary > 15000 OR did = 1 AND NOT (salary > 15000 AND did = 1);

原文地址: http://www.cveoy.top/t/topic/b2Co 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
SELECT * FROM t_employee WHERE salary > 15000 OR did = 1 AND NOT (salary > 15000 AND did = 1);
原文地址: http://www.cveoy.top/t/topic/b2Co 著作权归作者所有。请勿转载和采集!