- 按条件返回某些字段值。例如枚举值。
select
c.id,
c.apiName,
CASE c.method
WHEN 1 THEN 'GET'
WHEN 0 THEN'POST'
END 'method',
from api_generator_api_conf c;
select
c.id,
c.apiName,
CASE c.method
WHEN 1 THEN 'GET'
WHEN 0 THEN'POST'
END 'method',
from api_generator_api_conf c;