我想在下面做一个选择,即使结果是NULL
.
查询如下
SELECT id, result
FROM `fq_account_extend_result`
WHERE id_extend =5
AND (
id =1
OR id =2
OR id =3
OR id =4
)
ORDER BY id ASC
结果如下:
id result
1 testtest
2 asdasd
3 bill
我想包括id_extend = 4
,即使结果是空的
id result
1 testtest
2 asdasd
3 bill
4