注意好对NULL的处理即可。
SELECT name FROM customer WHERE referee_id != 2 OR referee_id IS NULL;
Last updated 4 years ago