drop function if exists drop_shengmu;
delimiter $
create function drop_shengmu(name varchar(255) charset gbk)
returns varchar(255) charset gbk
begin
declare result varchar(255) charset gbk default '';
if (name!='ji'&&name!='qi'&&name!='xi'&&name!='yi'&&name!='er'&&name!='zhi'&&name!='chi'&&name!='shi'
&&name!='zi'&&name!='ci'&&name!='si'&&name!='an'&&name!='ai'&&name!='e'&&name!='en') then
if (instr(name,'zh')>0||instr(name,'ch')>0||instr(name,'sh')>0) then
setresult = replace(replace(replace(name,'sh',''),'ch','&