SQL语句 MYSQL
ftp://192.168.0.170/Video/魔影工厂_2.1.1.4225.exe 把上面这个字段改为 ftp://192.168.0.170/Video/ 使用SQL语句实现。 方便批量修改数据
ftp://192.168.0.170/Video/魔影工厂_2.1.1.4225.exe 把上面这个字段改为 ftp://192.168.0.170/Video/ 使用SQL语句实现。 方便批量修改数据
答案:<?
$str="ftp://192.168.0.170/Video/魔影工厂_2.1.1.4225.exe";
$cutstr= mb_substr($str,0,strrpos($str,'/',0),'utf-8')
?>
其他:SELECT SUBSTRING_INDEX(ftp://192.168.0.170/Video/魔影工厂_2.1.1.4225.exe
', '魔影工厂', 1); update `表名称` set `字段名`=' ftp://192.168.0.170/Video/'
where `字段名`='ftp://192.168.0.170/Video/魔影工厂_2.1.1.4225.exe'