I have created a datetoword function in Mysql. Checked the function working fine. Now using this function need to convert the date from field1 (date-datetype) to field2 (Varchar-datatype) within the table using trigger on before insert.
Tried with some trigger code
Set New.dobw = CALL date_to_words(New.dob);
Help needed in this regard.
Show function status; (output is shown in screenshot)
SELECT date_to_words(NOW())
SHOW CREATE FUNCTION date_to_words\G
and post the output.date_to_words
function produce ? For example, what would be the output ofSELECT date_to_words(NOW());
?