Answer the question
In order to leave comments, you need to log in
How to write SQL query with CASE?
Good day.
How to write a query like this:
SELECT CASE WHEN a=0 THEN
UPDATE table SET b=0
my_function()
WHEN a=1
UPDATE table SET b=1
my_function()
ELSE my_function()
END;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question