Gidhub BE Developer

Insert + Update

2018-07-25
goodGid
DB

Concept

Query : Table에 PK값이 있으면 Update 없으면 Insert

INSERT INTO table_name (a, b) VALUES (?, ?) ON DUPLICATE KEY UPDATE a = ? , b = ?

Index