Ver Mensaje Individual
  #6  
Antiguo 31-01-2006
Avatar de delphi.com.ar
delphi.com.ar delphi.com.ar is offline
Federico Firenze
 
Registrado: may 2003
Ubicación: Buenos Aires, Argentina *
Posts: 5.932
Reputación: 27
delphi.com.ar Va por buen camino
Cita:
Empezado por Xianto
Tambien puedes hacer algo como:
Código SQL [-]
select
   case when a=1 then 5
   case when a=2 then 6
   case when a=3 then 7
   case when a=4 then 8
   case when a=5 then 9
end
Particularmente en ese caso yo haría algo como:
Código SQL [-]
select
   case a
    when 1 then 5
    when 2 then 6
    when 3 then 7
    when 4 then 8
    when 5 then 9
   end

Saludos!
__________________
delphi.com.ar

Dedique el tiempo suficiente para formular su pregunta si pretende que alguien dedique su tiempo en contestarla.
Responder Con Cita