主要用MOD() 函数取余 ,余数为0 则是偶数,为1则为基数
SELECT
*
FROM
employees
WHERE
MOD ( emp_no, 2 ) = 1
AND last_name <> 'Mary'
ORDER BY
hire_date DESC
主要用MOD() 函数取余 ,余数为0 则是偶数,为1则为基数
SELECT
*
FROM
employees
WHERE
MOD ( emp_no, 2 ) = 1
AND last_name <> 'Mary'
ORDER BY
hire_date DESC