mysql函数

 

 

set global log_bin_trust_function_creators=1;

 

 

delimiter $$
create function func_get_dicname(id varchar(100))
 returns varchar(255)
begin
 declare pname varchar(255);
  select dictionary_name into pname from t_dictionary where dictionary_id = id;
  return pname;
end$$

 


delimiter;

 

 

 

 

 

你可能感兴趣的:(mysql)