Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/08/2011, 12:05
Avatar de RIVERMILLOS
RIVERMILLOS
 
Fecha de Ingreso: marzo-2010
Mensajes: 1.336
Antigüedad: 14 años, 1 mes
Puntos: 15
Respuesta: Concaternar valores en una funcion.

Creo que deberia ir asi

Código MySQL:
Ver original
  1. -- Switch delimiter so the ; will work in the function body
  2. DELIMITER $$
  3.  
  4. -- Create the function
  5.     COMMENT 'Calculate the distance between two points'
  6.     BEGIN
  7.         RETURN GLength(GeomFromText('linestring(', a ,',', b ,')'));
  8.     END$$
  9.  
  10. -- Switch the delimiter back to ;
  11. DELIMITER ;


Pero me sale un error al crear la funcion


Script line: 5 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 '',', b ,')'));
END' at line 5


que puede ser?


saludos