
18/08/2009, 15:41
|
 | Colaborador | | Fecha de Ingreso: febrero-2009 Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 16 años Puntos: 360 | |
Respuesta: ayuda aclarar sintaxis create function mira esta:
Código mysql:
Ver originalDELIMITER $$ return f_y_h; delimiter ;
y así:
Código mysql:
Ver originalQuery OK, 0 rows affected (0.02 sec) Query OK, 1 row affected (0.00 sec) +---------------------+ | fecha | +---------------------+ | 2009-08-18 16:39:30 | +---------------------+ mysql > select conversion (fecha ) from prueba_funcion ;+---------------------+ | conversion(fecha) | +---------------------+ | 2009-08-18 12:39:30 | +---------------------+ mysql>
saludos
__________________ Without data, You are another person with an opinion.
W. Edwads Deming |