mysql收集

来源:互联网 发布:淘宝微淘关注店铺收藏 编辑:程序博客网 时间:2024/06/18 18:01

1、字符串拼接、以什么开头、是否包含某个字符串

UPDATE `mc_application` a

SET a.copyright_registration = CONCAT(
'http://op-cp.oss-cn-hangzhou.aliyuncs.com/UPLOAD-PIC/',
a.copyright_registration
)
WHERE
left(a.copyright_registration,4) <> 'http' AND a.copyright_registration  <> ''
and a.copyright_registration is not NULL
and locate(',',a.copyright_registration) = 0; 
原创粉丝点击