2019独角兽企业重金招聘Python工程师标准>>>
update zuixin_index set name = case when locate('《',title) <> 0 then substring(title,locate('《',title)+1, locate('》',title)-locate('《',title)-1) when locate('.',title) <> 0 then substring(title,1, locate('.',title)) when locate(' ',title) <> 0 then substring(title,1, locate(' ',title)) else title end;
替换掉其中的字符更新
update recommend_tvseries set content = replace(content,substring(content,locate('',content),locate('',content)-locate('',content)),'') where content like '%播放%';