how do i make case when else (where condition) mysql

前端 未结 0 964
时光说笑
时光说笑 2021-01-12 07:28

i have this query

SELECT dcp.discount_campaign_id, CASE  WHEN dcp.active = 0 
    THEN dcp.product_id ELSE (pc.category_id where c.sku_code is NOT NULL)
    E         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题