update student information set birthday=substring(ID number,7,4)+'-'+substring(ID card number,11,2)+'-'+substring(ID card number,13,2) where LEN(ID number)=18
update student information set gender='male' where LEN(ID number)=18 and substring(ID card number,17,1)%2=1 update student information set gender='female' where LEN(ID number)=18 and substring(ID card number,17,1)%2=0