
28/06/2009, 11:37
|
| | 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 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 |