
28/06/2009, 22:15
|
| | 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 por ejemplo que tendría malo aqui:
CREATE procedure check_themes(IN id int)
begin
DECLARE tema CHAR(1);
SELECT predeterminado INTO tema FROM themes WHERE id_theme=id;
IF tema=1 then
UPDATE themes set predeterminado=1 where id_theme=1;
else
//nada
end IF;
end$$
__________________ Rodrigo Lopez |