在mybatis的insert方法中,insert into table的前面加上
<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
select SYS_GUID() from dual
</selectKey>
在mybatis的insert方法中,insert into table的前面加上
<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
select SYS_GUID() from dual
</selectKey>