[SQL] MyBatis 에서 insert 시 자동 생성키 - MySQL


[SQL] MyBatis 에서 insert 시 자동 생성키 - MySQL

1. table 구조 create table user( userIdx int not null AUTO_INCREMENT, name varchar(10) not null, email varchar(50) not null, pw varchar(50) not null, pwCheck varchar(50) not null, tel int not null, address varchar(500) not null, checkAll boolean not null, PRIMARY KEY (userIdx) ); 2. 사용법 - repository @Insert("INSERT INTO dbelle.user (name, email, pw, pwCheck, tel, address, checkAll) VALUES (#{name}..


원문링크 : [SQL] MyBatis 에서 insert 시 자동 생성키 - MySQL