case statement in SQL, how to return multiple variables?

后端 未结 9 2183
甜味超标
甜味超标 2020-12-05 13:40

I would like to return multiple values in my case statement, such as :

SELECT
  CASE
    WHEN  THEN 
    WHEN          


        
9条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 14:08

    CASE by definition only returns a single value. Ever.

    It also (almost always) short circuits, which means if your first condition is met no other checks are run.

提交回复
热议问题