create PROCEDURE schemaName.asd() begin DECLARE stmt VARCHAR(255); SET stmt := concat('CREATE FUNCTION schemaName.asdsfasdf() RETURNS int BEGIN return 1; end;'); PREPARE stmt FROM @stmt; EXECUTE stmt; end;
call schemaName.asd()$$
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)