Created
January 23, 2019 17:27
-
-
Save emersondemetrio/9cb2769ed1b134d8fc1a51efe4421069 to your computer and use it in GitHub Desktop.
MYSQL Create Function Syntax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- https://dev.mysql.com/doc/refman/8.0/en/create-procedure.html | |
DROP FUNCTION db.hello; | |
CREATE FUNCTION db.hello (s CHAR(20)) | |
RETURNS CHAR(50) DETERMINISTIC | |
RETURN CONCAT('Hello, ',s,'!'); | |
SELECT db.hello('eae') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment