【发布时间】:2012-03-11 01:58:35
【问题描述】:
我的桌子是这样设置的:
table name: process
fields: name, id_string
table name: value_seach
fields: id_string, value
我想构建一个 select 语句,它将显示在 value_search 中没有条目的所有进程名称(及其各自的 id_string)。
进程表中的id_string可以为null,并且仍然有名字,但是如果可能的话需要排除。 value_search 中的 id_string 永远不能为 null
我该怎么做?
【问题讨论】:
-
您需要的关系运算符是半差分,也就是反连接。
标签: sql oracle exists anti-join