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) ) 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`) Link to comment https://forums.phpfreaks.com/topic/217919-sql-query-help-needed/#findComment-1131011 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.