时间:2021-07-01 10:21:17 帮助过:77人阅读
update table set mail_url =CONCAT(mail_url,.com) where id = 169; 待续,如果你有相关的,欢迎补充哦 存储过程: create PROCEDURE dowhile() BEGIN DECLARE i int DEFAULT 0; START TRANSACTION; WHILE i10 DO insert into TABLE (MAIL_url) values('***
update table set mail_url =CONCAT(mail_url,".com") where id = 169;
待续,如果你有相关的,欢迎补充哦
存储过程:
create PROCEDURE dowhile() BEGIN DECLARE i int DEFAULT 0; START TRANSACTION; WHILE i<10 DO insert into TABLE (MAIL_url) values('*******'); set i=i+1; END WHILE; COMMIT; END
[Err] 1062 - Duplicate entry '' for key 2
检查你字段有没有设置唯一约束,以上错误说明违反了unique约束。