将字符串的字符修改为其ASCII代码加10,SQL
我正在使用MariadB 10.3,并且正在尝试创建一个将字符串的所有字符修改的过程,每个char ascii代码,前方的10个位置。
我很难找到解决此问题的任何功能,谢谢。
例如,给定字符串“男人”:
ASCII代码:M = 109,A = 97,N = 110
加10:119 = W,107 = K,120 = X,
因此函数应返回:'WKX'
I am using mariadb 10.3 and I'm trying to create a procedure that modifies all characters of a string, to each CHAR ASCII code, 10 position ahead.
I'm having trouble to find any functions to approach this problem, thanks.
For example given the string 'man':
ASCII codes: m = 109, a = 97, n = 110
Plus 10: 119 = w, 107 = k, 120 = x
So the function should return: 'wkx'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这有效:
This works: