创建function函数sys_guid时报错

 

执行下面的命令

show variables like 'log_bin_trust_function_creators';
set global log_bin_trust_function_creators=1;

 

再进行创建

CREATE FUNCTION sys_guid()
RETURNS VARCHAR(32)
BEGIN
RETURN (SELECT REPLACE(UUID(), '-', ''));
END;

posted on 2022-09-08 18:45  一语惊呆众人  阅读(118)  评论(0)    收藏  举报