RETURN
Exit a stored function and return a value. This statement terminates function execution and sends the specified result back to the caller.
Syntax
RETURN exprCREATE FUNCTION users_count() RETURNS BOOL
READS SQL DATA
BEGIN
RETURN (SELECT COUNT(DISTINCT User) FROM mysql.user);
END;Last updated
Was this helpful?

