我将尝试使用NOT IN语句限制选定内容。
这是我的意图:
SELECT name,id
from "Schemas"."Paths"
where id not in(
select parent from "Schemas"."Paths"
)
但是这给了我一个空表。
我的这个表有824行,当我尝试这样做时:
SELECT name,id
from "Schemas"."Paths"
where id in(
select parent from "Schemas"."Paths"
)
我有一个182行的表格。
我缺少什么?