1.check the manual that corresponds to your MySQL server version for the right syntax to use near 'on duplicate key update tl_number = values(tl_number),tl_region = values(tl_' at line 12] with root cause 2.大家有知道这个是什么错误的吗?
北漂编程小王子的博客INSERT INTO T(A,B,C,D) VALUES (a,b,c,d) ON DUPLICATE KEYUPDATE C=C+1,D=d 这条语句相当于: INSERT INTO ... VALUES ... 当INSERT(因为主键或唯一键冲突)失败时,执行 UPDATE ... SET ... WHERE A = a AND ...
当我谈编程时我谈些什么的博客一,构造测试数据 注意里面的唯一键 drop table if exists tbl_test; create table tbl_test( id int primary key auto_increment,name varchar(30) ...update_time datetime default current_timestamp on update c