ironh4x Posted November 6, 2010 Share Posted November 6, 2010 how can I convert this to sql statement where ( (a==b and c==d) or (1==2 and 3==4) ) Quote Link to comment https://forums.phpfreaks.com/topic/217919-sql-query-help-needed/ Share on other sites More sharing options...
Airzooka Posted November 6, 2010 Share Posted November 6, 2010 If I understand you correctly: SELECT * FROM `table` WHERE (`col_a`=`col_b` AND `col_c`=`col_d`) OR (`col_1`=`col_2` AND `col_3`=`col_4`) Quote Link to comment https://forums.phpfreaks.com/topic/217919-sql-query-help-needed/#findComment-1131011 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.