(5) MySQL INSERT插入条件判断:若是不存在则插入 || MySQL中replace into ||INSERT INTO … ON DUPLICATE KEY U...

摘要  咱们常常须要进行sql的批量插入,要求:该条记录不存在则插入,存在则不插入。若是使用一条INSERT语句实现呢? ##test table: CREATE TABLE IF NOT EXISTS card ( cardno int(10) not null PRIMARY KEY, cardnum int(10) not null )engine=innodb default
相关文章
相关标签/搜索