MySQL

范例:

CASE WHEN p.allow_over = 1 THEN p.allow_over_capital ELSE 0 END

原文地址:https://www.cnblogs.com/andremao/p/7860376.html