我需要通过一套价值观(不到10项),看看它们是否被列入表。 如果是的话,我需要印刷所有记录价值,但如果该项目没有存在,我仍然希望将其列入印刷结果,尽管有联合国扫盲十年或零值。 因此,例如,以下询问:
select *
from ACTOR
where ID in (4, 5, 15);
+----+-----------------------------+-------------+----------+------+ | ID | NAME | DESCRIPTION | ORDER_ID | TYPE | +----+-----------------------------+-------------+----------+------+ | 4 | [TEST-1] | | 3 | NULL | | 5 | [TEST-2] | | 4 | NULL | +----+-----------------------------+-------------+----------+------+But I want it to return
+----+-----------------------------+-------------+----------+------+ | ID | NAME | DESCRIPTION | ORDER_ID | TYPE | +----+-----------------------------+-------------+----------+------+ | 4 | [TEST-1] | | 3 | NULL | | 5 | [TEST-2] | | 4 | NULL | | 15| NULL | | 0 | NULL | +----+-----------------------------+-------------+----------+------+
这是可能的吗?