
28/06/2009, 23:28
|
| | Fecha de Ingreso: diciembre-2002 Ubicación: arica 3334
Mensajes: 75
Antigüedad: 22 años, 2 meses Puntos: 0 | |
Respuesta: mysql y control de flujo. ayuda hice este y me compiló bien:
CREATE procedure check_themes(IN id int)
BEGIN
SELECT predeterminado FROM themes WHERE id_theme=id;
CASE predeterminado
WHEN '1' THEN UPDATE themes set predeterminado = '1' where id_theme = 1;
END CASE;
END$$
pero no se como llamarlo o ejecutarlo ya que no retorna nada y cuando lo llame por select o call desde phpmyadmin me tiró error :s
__________________ Rodrigo Lopez
Última edición por rodrigo_lopez; 28/06/2009 a las 23:36 |