Ver Mensaje Individual
  #17 (permalink)  
Antiguo 28/06/2009, 19:20
rodrigo_lopez
 
Fecha de Ingreso: diciembre-2002
Ubicación: arica 3334
Mensajes: 75
Antigüedad: 21 años, 4 meses
Puntos: 0
Respuesta: mysql y control de flujo. ayuda

escribi esto en phpmyadmin:

DROP FUNCTION IF EXISTS check_template$$
CREATE FUNTION check_template(id INT) RETURNS CHAR(1)
READS SQL DATA
BEGIN
DECLARE tema CHAR(1);
SELECT predeterminado INTO tema FROM themes WHERE id_theme=id;
RETURN tema;
END$$

y escribi $$ en Delimitador

y no funciona. hice algo mal?
__________________
Rodrigo Lopez