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

mysql 字符串拼接 同append

WBOY
Release: 2016-06-07 15:08:32
Original
1512 people have browsed it

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;
Copy after login


待续,如果你有相关的,欢迎补充哦


存储过程:

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>


Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template