Bucle Case

26/08/2005 - 20:11 por Alexc | Informe spam
Hay alguna forma de hacer lo sigte en SP
Select case @n
case @n=1
instrucciones..
case @n=2
instrucciones ..
...
..
case @n=5
End select

o tal como se hace con el

If
ElseIf
endif de Visual Basic

De antemano gracias por sus alcances.
 

Leer las respuestas

#1 Gustavo Larriera [MVP]
26/08/2005 - 20:18 | Informe spam
Lo debes hacer con IF.

Gustavo Larriera
Uruguay LatAm
Blog: http://sqljunkies.com/weblog/gux/
MVP profile: http://aspnet2.com/mvp.ashx?GustavoLarriera
Este mensaje se proporciona "COMO ESTA" sin garantias y no otorga ningun
derecho / This posting is provided "AS IS" with no warranties, and confers
no rights.

"Alexc" wrote in message
news:%
Hay alguna forma de hacer lo sigte en SP
Select case @n
case @n=1
instrucciones..
case @n=2
instrucciones ..
...
..
case @n=5
End select

o tal como se hace con el

If
ElseIf
endif de Visual Basic

De antemano gracias por sus alcances.


Preguntas similares