update token set token=#{token} where user_id=#{userId} insert into token(user_id,token) values(#{userId},#{token})