随笔分类 - MyBatis
MyBatis
摘要:<!-- MySQL自动生成主键--><insert id="insert" useGeneratedKeys="true" keyProperty="id"> INSERT INTO t_car(id,name) VALUES (#{id},#{name})</insert>
阅读全文
摘要:<insert id="insert"> <selectKey order="BEFORE" keyProperty="id" resultType="int"> SELECT SEQ_ROLE_PERMISSION.NEXTVAL FROM dual </selectKey> INSERT INT
阅读全文
摘要:<resultMap id="myDept" type="com.stayreal.mybatis.Department"> <id column="did" property="id"/> <result column="dept_name" property="name"/> <!-- coll
阅读全文

浙公网安备 33010602011771号