题解 | #批量插入数据,不使用replace操作#
批量插入数据,不使用replace操作
http://www.nowcoder.com/practice/153c8a8e7805400ba8e384e03acc6b3e
/* 插入:insert into,replace into ,insert or ignore into insert into actor (actor_id,first_name,last_name,last_update) values(3,'ED','CHAES','2006-02-15 12:34:33')*/ -- replace into 替换数据,语句与insert into 类似 -- replace into actor (actor_id,first_name,last_name,last_update) -- values(3,'ED','CHAES','2006-02-15 12:34:33')
insert or ignore into actor (actor_id,first_name,last_name,last_update) values(3,'ED','CHASE','2006-02-15 12:34:33')