update person Inner Join patient ON person.cid = patient.cid set person.sex = patient.sex
where person.sex <> patient.sex and person.cid not in ( '0000000000001','0000000000019');
update person set person.sex ='1' where person.pname='นาย' and person.sex ='2' ;