What is the MySQL query equivalent of PHP strip_tags?

后端 未结 9 816
情书的邮戳
情书的邮戳 2020-11-27 18:49

I have a large database which contains records that have tags in them and I would like to remove them. Of course there is the method where I create a

9条回答
  •  旧时难觅i
    2020-11-27 19:11

    Boann's works once I added SET $str = COALESCE($str, '');.

    from this post:

    Also to note, you may want to put a SET $str = COALESCE($str, ''); just before the loop otherwise null values may cause a crash/never ending query. – Tom C Aug 17 at 9:51

提交回复
热议问题