How to Use Regexp in MySQL Replace Commands?

前端 未结 3 2130
挽巷
挽巷 2021-01-06 03:26

My goal is to replace the links in the database with a catchall link. I generally use the REPLACE command for replacing string in the database, but this time I am having dif

3条回答
  •  醉话见心
    2021-01-06 03:33

    Short answer: you can't with base MySQL.

    Long answer: this previous SO question, which mentions that you could do it with a UDF (user-defined function). However, this requires re-building MySQL to include the udf.

提交回复
热议问题