Passing parameters to functions

User-defined functions are not invoked with the CALL statement, but are used in the same manner that built-in functions are used. For example, the following statement uses the fullname function defined in “Creating user-defined functions” to retrieve the names of all employees:

SELECT fullname(emp_fname, emp_lname) AS Name
FROM employee

Name

Fran Whitney

Matthew Cobb

Philip Chin

Julie Jordan

Robert Breault

...

Notes