Is Mysql IF EXIST what should be used for this query?

Posted by acctman on Stack Overflow See other posts from Stack Overflow or by acctman
Published on 2010-04-27T01:52:54Z Indexed on 2010/04/27 2:13 UTC
Read the original article Hit count: 226

Filed under:
select social_members.* , social_mcouple.* WHERE m_id='".$_SESSION['userid']."' AND  c_id='".$_SESSION['userid']."'

Select all fields from social_members.* and if social_mcouple.c_id = $_SESSION['userid'] then Select all fields from social_mcouple.* as well. Can this be done with IF EXIST and if so how. Thanks

© Stack Overflow or respective owner

Related posts about mysql