Home > Database > Mysql Tutorial > body text

mysql mybatis返回插入的主键id_MySQL

WBOY
Release: 2016-06-01 13:39:26
Original
895 people have browsed it

bitsCN.com
mysql mybatis返回插入的主键id [html]     insert into T_Company_Info (Company_Id, IsFranchisee, Company_Code, Company_Name)    values (#{companyId}, #{isfranchisee}, #{companyCode}, #{companyName})                SELECT LAST_INSERT_ID() AS ID              在执行插入之后执行,查询到 主键id[html] SELECT LAST_INSERT_ID() AS ID    通过对象 com.yjf.entity.TCompanyInfo.companyId  取得主键[java] company.getCompanyId()   bitsCN.com

Related labels:
key
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template