问题描述
嗨!
DB2是否处理扩展的ASCII表?
示例:
VALUES(CHR(65))= A
VALUES(CHR(129))= null,但根据应该是u
与变音符号。
有什么想法吗?
祝你好运,
Kovi
-
- 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - ~~~~ - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - ~~~~~~ -
|在一个没有围栏需要盖茨的世界里? |
|体验Linux。 |
- 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - ~~~~~~~~~~~~~~~~~~~~~~ 〜 - 〜 - 〜 - 〜 -
Hi!
Does DB2 handle extended ASCII table?
Example:
VALUES(CHR(65)) =A
VALUES(CHR(129)) =null, but according to www.asciitable.com should be u
with umlaut.
Any idea ?
Best regards,
Kovi
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
推荐答案
I从网址引用:
_most_popular_如下所示。
对于单字节代码页,我没有看到不支持所有255的原因
字符并执行DB代码页所要求的任何内容。
无论如何,最简单的解决方法可能是暗示用C / Java编写一个简单的UDF
/ CLR完成这项工作。
干杯
Serge
-
Serge Rielau
DB2 Solu tions开发
IBM多伦多实验室
IOD会议
我从网址引用:
_most_popular_如下所示。
对于单字节代码页我没有理由不支持所有255
字符并做任何数据库代码页要求。
无论如何,最简单的解决方法可能是暗示在C / Java / CLR中编写一个简单的UDF
来完成这项工作。
I quote from the URL:
The _most_popular_ is presented below.
For single byte code pages I don''t see a reason not to support all 255
characters and do whatever the DB code page mandates.
Anyway, the easiest workaround is probably to imply write a trivial UDF
in C/Java/CLR which does the job.
当然一个大案例表达也会起作用;-)
干杯
Serge
-
Serge Rielau
DB2解决方案开发
IBM多伦多实验室
IOD会议
我引自URL:
_most_popular_如下所示。
对于单字节代码页,我没有看到不支持所有255个字符的理由,并且无论数据库代码页要求做什么。
I quote from the URL:
The _most_popular_ is presented below.
For single byte code pages I don''t see a reason not to support all 255
characters and do whatever the DB code page mandates.
Anyway, the easiest workaround is probably to imply write a trivial UDF
in C/Java/CLR which does the job.
当然一个大案例表达也会起作用;-)
干杯
Serge
Of course a big case expression will also work ;-)
Cheers
Serge
嗯....
事情是我必须替换VARCHAR字段中的一些字符。 />
例如:?? (带着卡通的C)进入CHR(219)。我不太确定你在说什么
。
祝你好运,
Kovi
-
- 〜 - 〜 - 〜 - ~~~~~~~~~~~~~~~~~~~~~~~~ 〜 - 〜 - 〜 - 〜 - 〜 - 〜 -
|在一个没有围栏需要盖茨的世界里? |
|体验Linux。 |
- 〜 - 〜 - 〜 - 〜 - 〜 - 〜 - ~~~~~~~~~~~~~~~~~~~~~~ 〜 - 〜 - 〜 - 〜 -
Hmmm....
The thing is that I have to replace some characters in a VARCHAR field.
For example: ?? (C with a caron) goes into CHR(219). I''m not sure quite what
are you talking about.
Best regards,
Kovi
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
这篇关于DB2和扩展的ASCII表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!