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