Home >Database >Mysql Tutorial >mysql 字符串拼接 同append

mysql 字符串拼接 同append

WBOY
WBOYOriginal
2016-06-07 15:08:321508browse

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>


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn