zoukankan      html  css  js  c++  java
  • mybatis保存的时候返回值为数据库中主键的id值

    select last_insert_id(); insert into t_user (id, avatar, create_time, email, nick_name, password, type, update_time, user_name, file_id, register_method, token, short_message, telephone, location, job, city, district, province, update_pw_time, salt, github_url, qq_number, wechat_number, user_log) values (#{id,jdbcType=INTEGER}, #{avatar,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{email,jdbcType=VARCHAR}, #{nickName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{userName,jdbcType=VARCHAR}, #{fileId,jdbcType=BIGINT}, #{registerMethod,jdbcType=VARCHAR}, #{token,jdbcType=VARCHAR}, #{shortMessage,jdbcType=VARCHAR}, #{telephone,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, #{job,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{district,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, #{updatePwTime,jdbcType=TIMESTAMP}, #{salt,jdbcType=VARCHAR}, #{githubUrl,jdbcType=VARCHAR}, #{qqNumber,jdbcType=VARCHAR}, #{wechatNumber,jdbcType=VARCHAR}, #{userLog,jdbcType=BIGINT})
  • 相关阅读:
    Python ES操作
    SVN总结
    MongoDB问题总结
    MySQL
    PyQt小工具
    Python logging模块
    shell脚本
    cmd命令
    eclipse java 项目打包
    Robot Framework:failed: Data source does not exist.错误
  • 原文地址:https://www.cnblogs.com/chenyameng/p/13371704.html
Copyright © 2011-2022 走看看