<insertid="insertDemoReturnPrimaryKey2"parameterType="com.fcmap.ssm.domain.Demo"><selectKeyresultType="java.lang.Integer"order="AFTER"keyProperty="id">
SELECT LAST_INSERT_ID() AS id
</selectKey>
insert into DEMO (id,name) values (#{id},#{name});
</insert>