Ver Mensaje Individual
  #8 (permalink)  
Antiguo 28/06/2009, 11:37
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

ingrese el codigo :

DROP FUNCTION IF EXISTS check_template
CREATE FUNTION check_template(id INT) RETURNS CHAR
BEGIN
declare tema CHAR;
SELECT predeterminado INTO tema FROM themes WHERE id_theme=id;
RETURN tema;
END

y me devuleve error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE FUNTION check_template(id INT) RETURNS CHAR
BEGIN
declare temas CHAR' at line 2
__________________
Rodrigo Lopez