Tags: queries

Set conditions in a MySQL database

November 1st, 2010
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 »