pro_update_role_pwd
DELIMITER | drop procedure if exists pro_update_role_pwd; CREATE PROCEDURE pro_update_role_pwd ( croleid VARCHAR(50), crolepwd VARCHAR(50) ) BEGIN #update traceroleid set Pwd =to_base64(CONCAT(''',crolepwd,''')) where TraceRoleID =CONCAT(''',croleid,'''); update traceroleid set Pwd =to_base64(crolepwd) where TraceRoleID =croleid; #SELECT croleid ,crolepwd; END; | DELIMITER ;