替换sql中字符串中的空字符 [英] Replace null character in a string in sql
本文介绍了替换sql中字符串中的空字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要替换 sql 字符串中的空字符,我似乎找不到正确的命令来实现这一点.我使用了 replace (myString ,'\0', '') 但这似乎不起作用,任何帮助都会很棒
I need to replace a null character in a sql string, i cant seem to find the right command to achieve this. I have used replace (myString ,'\0', '') but this seems not to work, any help would be great
推荐答案
使用这个:
REPLACE(myString, char(0), '')
这篇关于替换sql中字符串中的空字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文