mysql - 对于此服务器版本,“with”在此位置无效,需要标识符
问题描述
我有这个触发器,它在我的本地主机中运行良好,但是当我想将它部署到服务器时,它给了我这个错误。(“with”对于这个服务器版本在这个位置无效,需要一个标识符。)知道如何摆脱这个吗?
with recursive cte as (
select name as name, left(name, 1) as val, 1 as idx
union all
select name, substring(name, idx + 1, 1), idx + 1
from cte
where idx < char_length(name)
)
select group_concat(ascii(val) order by idx separator '') ascii_word from cte into result;
所以 name 是一个字符串。它需要将字符串转换为字符 - ascii 字符,然后在最后合并。
解决方案
推荐阅读
- flutter - 如何在关闭颤振应用程序时处理流?
- sql - SQL 查询以获取特定部门的具有 null 和非 null 佣金值的员工
- swift - Swift - 无法通过 BLE 读取多个特征
- flutter - Flutter 中相同的 StreamBuilders,一个正在工作,另一个返回 null
- javascript - 从 GitHub Pages JavaScript 确定 repo 和发布源
- powerbi - 如何使用在 loopkup 表上应用的过滤器从另一个表中查找
- html - 在 laravel 项目中使用 Meteronic 主题
- python - 如何从此列表中删除空字典
- docker - 无法在 Windows 上运行 docker 命令
- java - java - 如何在没有科学计数法的情况下使用java将String转换为Float值?