mysql on update cascade
[MySQL] 기본키, 외래키 값 변경에 대하여 (feat. on update cascade)
테이블 생성하기 -- member1 table create table member1 ( name_id int not null auto_increment, name char(6), primary key(name_id) ); -- buy1 table create table buy1 ( buy_id int not null auto_increment, product char(10), name_id int, primary key(buy_id) ); 데이터 넣기 -- member table insert into member1 values (null,'CHOI'), (null,'KIM'); -- buy table insert into buy1 values (null,'노트북', 1), (null,'폰',2); 테이블..