【发布时间】:2010-09-15 16:56:59
【问题描述】:
编辑:这样做了:
SELECT DISTINCT profileid
FROM profilesrelevation
WHERE profileid NOT IN (
SELECT profileid FROM profiles
)
我需要获取profilesrelevation 表中存在但profiles 表中不存在的profileid 值
profiles 表有 8107 个不同的“profileid”值,而profilesrelevation 表有 8380 个不同的“profilesid”值...
profiles.profileid
profilerelevation.profileid
select * from profiles, profilesrelevation
where profilesrelevation.profileid != profiles.profileid
不行,怎么办?
【问题讨论】: