Buenos días, estoy haciendo una página web en el hosting gratuito de Hostinger, y hasta ahora todo genial, pero necesito crearme un procedimiento.
El Procedimiento contiene un cursor ya que necesito hacer un Update sobre varias líneas y almacenando una serie de valores en variables...
El procedimiento me lo crea bien, pero cuando hago el call, se me queda CARGANDo, y no me hace nada. os dejo el código a continuación.
Código MySQL:
Ver original
SELECT IdUser
,Usuario
,Liga
,fechamodificacion
FROM tbAustralia
WHERE Temporada
= 2013;
OPEN CursorF1;
Select xpos1
= Primero
, xpos2
= Segundo
, xpos3
= Tercero
, xpos4
= Cuarto
, xpos5
= Quinto
, xpos6
= Sexto
, xpos7
= Septimo
, xpos8
= Octavo
, xpos9
= Noveno
, xpos10
= Decimo
, xpole1
= pole1
, xpole2
= pole2
, xpole3
= pole3
, xpult
= ultimo
FROM tbAustralia
SET xvariable1
= xvariable1
+ 25; SET xaciertos
= xaciertos
+ 1; SET xvariable1
= xvariable1
+ 18; SET xaciertos
= xaciertos
+ 1; SET xvariable1
= xvariable1
+ 15; SET xaciertos
= xaciertos
+ 1; SET xvariable1
= xvariable1
+ 12; SET xaciertos
= xaciertos
+ 1; SET xvariable1
= xvariable1
+ 10; SET xaciertos
= xaciertos
+ 1; SET xvariable1
= xvariable1
+ 8; SET xaciertos
= xaciertos
+ 1; SET xvariable1
= xvariable1
+ 6; SET xaciertos
= xaciertos
+ 1; SET xvariable1
= xvariable1
+ 4; SET xaciertos
= xaciertos
+ 1; SET xvariable1
= xvariable1
+ 2; SET xaciertos
= xaciertos
+ 1; SET xvariable1
= xvariable1
+ 1; SET xaciertos
= xaciertos
+ 1;
SET xvariable1
= xvariable1
+ 15; SET xaciertos
= xaciertos
+ 1; SET xvariable1
= xvariable1
+ 10; SET xaciertos
= xaciertos
+ 1; SET xvariable1
= xvariable1
+ 8; SET xaciertos
= xaciertos
+ 1;
SET xvariable1
= xvariable1
+ 5; SET xaciertos
= xaciertos
+ 1;
SET xvariable1
= xvariable1
+ 10;
CLOSE CursorF1;