请教Ascii函数

heyixiang 2007-12-20 04:14:12
Char函数和Seq函数是互逆的,就是将ASCII字符和数值编码相互转换,但Ascii函数是干什么用的呢?英文文档的例子我没有看明白,请能人指点一下。

Ascii Function
Converts the values of characters in a string from EBCDIC to ASCII
format.

Syntax
Ascii (string)
string is the string or expression that you want to convert. If string is a
null value, a null value is returned.

Remarks
The Ascii and Ebcdic functions perform complementary operations.

Warning If NLS is enabled, this function may return data that is
not recognized by the current character set map.

Example
This example shows the Ascii function being used to compare a
string of EBCDIC bytes:

EbcdicStr = Char(193):Char(241) ;* letter A digit 1 in EBCDIC
AsciiStr = Ascii(EbcdicStr);* convert EBCDIC to ASCII
If AsciiStr = "A1" Then;* compare with ASCII constant
... ;* ... this branch is taken
EndIf
...全文
54 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zmgowin 2007-12-25
  • 打赏
  • 举报
回复
seq和ascii的是源码编码的格式不同,ascii源码是二进制编码格式
heyixiang 2007-12-20
  • 打赏
  • 举报
回复
我指的是DataStage中的Ascii函数

7,388

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 数据仓库
社区管理员
  • 数据仓库
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧