oracle数据库获取uuid:select rawtohex(sys_guid()) from dual;

mapper.xml实例

 

<insert >
    <selectKey resultType="String" keyProperty="id" order="BEFORE">
      select rawtohex(sys_guid()) from dual
    </selectKey>
    insert into TS_OPERATE_LOG (ID, OPERATE_USER_ID, OPERATE_USER_NAME,
                                IP, DEVICE, BROWSER, OPERATE_CONTENT)
    values (#{id,jdbcType=VARCHAR}, #{operateUserId,jdbcType=OTHER}, #{operateUserName,jdbcType=VARCHAR},
      #{ip,jdbcType=VARCHAR}, #{device,jdbcType=VARCHAR},
      #{browser,jdbcType=VARCHAR}, #{operateContent,jdbcType=VARCHAR})
  </insert>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
猜你喜欢
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案