and id = #{id} and name = #{name} and address = #{address} and mobile = #{mobile} and email = #{email} and role = #{role} SELECT LAST_INSERT_ID() INSERT INTO user( id, name, address, mobile, email, create_time, role )VALUES( #{id}, #{name}, #{address}, #{mobile}, #{email}, NOW(), #{role} ) UPDATE user SET name = #{name}, address = #{address}, mobile = #{mobile}, email = #{email}, role = #{role} WHERE id = #{id} DELETE FROM user WHERE id = #{id}