Click here to Skip to main content
15,891,694 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
CREATE  PROCEDURE updateparentprofile(
_usercode varchar(200),
_address varchar(200),
_fatherEmail varchar(200),
_parentusername varchar(200),
_parentpassword varchar(200),
_motherEmail varchar(200)
)
begin

update parentmaster set fatherEmail=_fatherEmail,motherEmail=_motherEmail where usercode = _usercode;

update studentmaster set fatherEmail=_fatherEmail,motherEmail=_motherEmail,address=_address where usercode = fn_getStudentUCByParent(_usercode);

update usersmaster set username=_parentusername,password=_parentpassword where usercode=_usercode;

end;


ERROR

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
Posted
Updated 16-Jun-14 23:37pm
v2

1 solution

CREATE PROCEDURE updateparentprofile(
_usercode varchar(200),
_address varchar(200),
_fatherEmail varchar(200),
_parentusername varchar(200),
_parentpassword varchar(200),
_motherEmail varchar(200)
)
begin

DECLARE _Pusercode varchar(200);
set _Pusercode = fn_getStudentUCByParent(_usercode);
update parentmaster set fatherEmail = _fatherEmail, motherEmail = _motherEmail where usercode = _usercode;

update studentmaster set fatherEmail = _fatherEmail, motherEmail = _motherEmail, address = _address where usercode = _Pusercode;

update usersmaster set username = _parentusername, password = _parentpassword where usercode = _usercode;

end;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900