日期:2014-05-16 浏览次数:20902 次
<insert id="insertLQTWorkerJobDetial" parameterClass="java.util.HashMap"> INSERT into table_name(.....) VALUES (......) <selectKey resultClass="long" keyProperty="id"> select last_insert_id() as id from table_name limit 1 </selectKey> </insert>