lenamtl
asked on
mysql query to adapt for a find and replace
Hi,
I need to adapt this Mysql query, this will be a manual query that I will run from PHPMyAdmin
example
report summer 2016.pdf
need to be change to report-summer-2016.pdf
actual result report-this------2016.pdf
Thanks
I need to adapt this Mysql query, this will be a manual query that I will run from PHPMyAdmin
update table_name set column_name = replace(column_name, ' ', '-');
I want to replace consecutive space by only one -example
report summer 2016.pdf
need to be change to report-summer-2016.pdf
actual result report-this------2016.pdf
Thanks
ASKER
Your solution is not working space remain and -- added
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@Author - Any update on this ?
ASKER
Excellent
Thanks
Thanks
Open in new window
--