Quote:
select * from table1 where column1='somevalue'
or
select * from table1 where column1=* ? --- (all values in that column)
|
To choose first or second query, this may give equivalent results.
(The row which column1 is null would not be selected.)
Code:
select *
from table1
where column1 = CASE
WHEN <condition to select somevalue> THEN
'somevalue'
ELSE column1
END
;