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<br> 调用以上存储过程方法:【call dowhile;】报错可能出现的原因: <p><br> </p> <p>[Err] 1062 - Duplicate entry '' for key 2<br> </p> <p>检查你字段有没有设置唯一约束,以上错误说明违反了unique约束。</p> <p><br> </p> <p><br> </p> <p><br> </p>