📅  最后修改于: 2022-03-11 15:05:29.110000             🧑  作者: Mango
select (
case when (value1 = 1) then (value2)
when (value2 = 1) then (value1) end) as newColumnname
from tablename where value1 = 1 or value2 = 1