I\'m building query to search multiple rows from database like
SELECT
*
FROM
table1
WHERE col1 = \'012311\'
OR col1 = \'0123631\'
OR col1 = \'0
SELECT
CASE WHEN col1 = NULL THEN "NULL" ELSE col1 END AS 'col1'
FROM table1
WHERE
col1 = '012311'
OR col1 = '0123631'
OR col1 = '091233'
OR col1 = '092111'
This might be along the lines of what you're looking for, format-wise. If col1 is NULL then return a string "NULL" (this can be substituted). If col1 is NOT NULL then return the valued result.
Hopefully this works!