Sokonomi
Sokonomi

Reputation: 61

Replacing backslash with forward slash in mySQL?

I currently have a table with \paths\, but they need to be /paths/. Does anyone know what query I need to run in myPHPadmin to get it fixed?

Upvotes: 1

Views: 3962

Answers (1)

Sailesh Babu Doppalapudi
Sailesh Babu Doppalapudi

Reputation: 1544

SQL has replace function. Here is the link to mySQL docs.

update tablename set columnToUpdate = replace(columnToUpdate, '\\', '/');

Upvotes: 2

Related Questions