请帮助调整以下sql查询,执行大约需要3个小时,我做得对吗?
SELECT COUNT(P.POSTID)
FROM QUAD.PostVersion P
INNER JOIN QUAD.PostMapping PM
ON PM.PostID = P.PostID
AND PM.LASTVERSION = P.VERSION
INNER JOIN QUAD.USER_ U
ON P.MODIFIEDUSERID = U.USERID
WHERE content IS NOT NULL
AND DBMS_LOB.INSTR(UPPER(content),'LINK') > 0