select objectid
,name
,address
from library_t l
where not exists (select *
from d107 d
where l.objectid = d.objectid
)
select objectid
,name
,address
from library_t l
where l.objectid not in (select objectid
from d107
)
Run Code Online (Sandbox Code Playgroud)
如果两个objectid列都有索引,哪一个在oracle中更好?
我有大量的数据记录,每个数据记录在我的域中都有唯一的ID.那么我可以在mongodb中禁用(不保存)插入文档中的ObjectID吗?它需要大量的磁盘空间......