您的位置:首页 > 数据库 > MySQL

mysql concat拼接函数

2015-06-12 12:23 501 查看
<pre name="code" class="plain">mysql 拼接:

select concat('aa','bb') from zjzc.Notice

select title, concat("<a href='https://www.zjcap.cn/",replace(title,"<a href='",'')) from zjzc.Notice

where title like "%href='products%"

SET SQL_SAFE_UPDATES = 0;

update zjzc.Notice set title=concat("<a href='https://www.zjcap.cn/",replace

(title,"<a href='",''))   where title like "%href='products%"

SET SQL_SAFE_UPDATES = 0;

update zjzc.Notice set title=concat("<a href='https://www.zjcap.cn/",replace(title,"<a href='",'')) and detail= concat("<a href='https://www.zjcap.cn/",replace(title,"<a href='",''))  where title like "%href='products%"



                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: