MySQL函数的一些使用

SELECT right(j.`file_path`,19) FROM j2shop_data.j2_jfile j

SELECT REPLACE(`file_path`,'../upfiles/','') FROM j2shop_data.j2_jfile j  

UPDATE j2shop.j2_jfile j SET j.`file_path` =REPLACE(`file_path`,'../upfiles/','')

UPDATE j2shop.j2_jfile j SET j.`file_path` =CONCAT('/U/1/',j.`file_path` )

UPDATE j2shop.j2_jfile j SET j.`file_path` =SUBSTRING(j.`file_path`,6)

 

你可能感兴趣的:(mysql)