I\'m building query to search multiple rows from database like
SELECT * FROM table1 WHERE col1 = \'012311\' OR col1 = \'0123631\' OR col1 = \'0
In MySQL you can use IFNULL to return a specified value if no row found i.e. when it returns NULL ex-
SELECT IFNULL( (SELECT col1 FROM table1 WHERE col1 in (your_list)) ,'default_value_you_want_to_return');
you can see examples of IFNULL here - IFNULL Example