Simplify a mysql query please -
i have mysql query :
select p.* posts p ( p.userid in ( select blogid abos userid=11 ) or p.userid = 11 ) , not exists ( select null posts_denied r r.post_id = p.id , r.userid = 11 ) order p.id desc limit 5
i remove "where in" clause... how can find best performance query syntax please?
select distinct p.* posts p join abos on p.userid = a.blogid or p.userid = 11 left join posts_denied r on r.post_id = p.id , r.userid = 11 (a.userid = 11 or p.userid = 11) , r.post_id null order p.id desc limit 5
Comments
Post a Comment