you can specify any condition using the WHERE clause code example Example: mysql query where in SELECT * FROM `tableName` WHERE `ColumnName` IN (1,2,3);