新项目使用regexp_replace
,所以我将 mysql 安装更新到 8.0.3。但还是感觉什么都没变=)
琐碎的查询:
$ echo "select regexp_replace('a','.','z')" | mysql mysql
ERROR 1305 (42000) at line 1: FUNCTION mysql.regexp_replace does not exist
版本:
$ # mysqld --version
/usr/sbin/mysqld Ver 8.0.3-rc-log for Linux on x86_64 (MySQL Community Server (GPL))
最佳答案
REGEXP_REPLACE 函数在 8.0.4 版本中发布,更新到 8.0.12 解决了这个问题。
关于mysql-8.0 - mysql 8.0.3 : function regexp_replace does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52082559/