Julio Cesar Rodriguez Dominguez escribió:
http://www.postgresql.org/docs/current/static/functions-conditional.html

Muchas gracias,

Esta parte andaba buscando

SELECT a,
       CASE a WHEN 1 THEN 'one'
              WHEN 2 THEN 'two'
              ELSE 'other'
       END
    FROM test;


Asunto resuelto.


Cordialmente,
Juan Ramírez
El Salvdor
--
TIP 3: Si encontraste la respuesta a tu problema, publícala, otros te lo 
agradecerán

Responder a