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 ;

  

posted @ 2017-06-13 16:57  苍洱  阅读(124)  评论(0编辑  收藏  举报