![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
16/06/2012, 12:28
|
![Avatar de huesos52](http://static.forosdelweb.com/customavatars/avatar287966_22.gif) | Colaborador | | Fecha de Ingreso: febrero-2009 Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 16 años Puntos: 360 | |
Respuesta: Obtener resultado por si o por no
Código SQL:
Ver originalSELECT CASE WHEN id='1234' THEN valor ELSE 'NO EXISTE' FROM tabla WHERE id='1234';
__________________ Without data, You are another person with an opinion.
W. Edwads Deming |