我有一个名为NAME_USER的varchar2列。例如,数据为:JUAN ROM上面的N,但我尝试显示JUAN ROMAN,请在我的语句结果中将replace替换为A。我怎样才能做到这一点?。提前致谢。
结合使用 转换 功能和适当的字符集
select CONVERT('JUAN ROM脛N', 'US7ASCII') from dual;
以下是可在oracle中使用的字符集:
US7ASCII: US 7-bit ASCII character set WE8DEC: West European 8-bit character set WE8HP: HP West European Laserjet 8-bit character set F7DEC: DEC French 7-bit character set WE8EBCDIC500: IBM West European EBCDIC Code Page 500 WE8PC850: IBM PC Code Page 850 WE8ISO8859P1: ISO 8859-1 West European 8-bit character set