时间:2021-07-01 10:21:17 帮助过:18人阅读
SELECT *
FROM employees
WHERE (employee_id,salary)=(
SELECT MIN(employee_id),MAX(salary)
FROM employees
);
由以下代码演变而来
SELECT *
FROM employees
WHERE employee_id=(
SELECT MIN(employee_id)
FROM employees
) AND salary=(
SELECT MAX(salary)
FROM employees
);
mysql 行子查询
标签:sele mysql 代码 编号 案例 select code 员工信息 min