userid,loginname,loginpass,username,upower,birthday,sex
update userinfo
set loginname=#{loginname},loginpass=#{loginpass},username=#{username},
upower=#{upower},birthday=#{birthday},sex=#{sex}
where userid=#{userid}
insert into userinfo()
values
(#{userid},#{loginname},#{loginpass},#{username},#{upower},#{birthday},#{sex})
delete from userinfo where userid=#{userid}