Replace multiple character

How to replace multiple characters in a Textstring ececuting one select? Replace is just replacing on character during a select.

Answer Answered by Ian Gilfillan in this comment.

You don't specify exactly what you mean, but nested REPLACE statements, for example

SELECT REPLACE(REPLACE('', 'x', 'w'),'c','a');
| REPLACE(REPLACE('', 'x', 'w'),'c','a') |
|                                       |

or regular expressions?


Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.