Set conditions in a MySQL database Posted by davidnewcomb on 01 Nov 2010 in MySQL Ever come across the situation where you need to search for sets of values in a (MySQL) database? SQL along the lines of: SELECT col1, col2 FROM table1 WHERE (col3 = 5 and col4 = 6) or (col3 = 10 and col4 = 12) or (col3 = 15 and col4 = 3) more »