【问题标题】:What is the purpose of the Cognos SQL function/expression "ascii"?Cognos SQL 函数/表达式“ascii”的用途是什么?
【发布时间】:2013-04-18 05:02:26
【问题描述】:

我必须将 Cognos Impromptu 7 查询转换为 TSQL。部分查询包括以下内容:

nconvert((SUBSTRING((ascii(t1.TargetDate)) from 1 for 4)))

/* 
where: 
    t1 is a table alias
    TargetDate is a BIGINT contains the value 200501
*/

有人可以解释函数/表达式“ascii”的用途吗?

(仅供参考:SQL Server ASCII 函数产生 ascii(200501) ==> ascii(2) ==> 50 )

奖励:如果有人可以将我指向包含 ascii 定义的在线资源,我将不胜感激。我的搜索没有结果。

【问题讨论】:

标签: sql cognos-bi impromptu


【解决方案1】:

官方 Impromptu 7.5 管理员指南在这里:
Impromptu Administration Guide 7.5.0
所有函数(包括文本、数字和日期/时间函数)都记录在这里
但是,我在那里没有找到任何 ascii 函数。
所以,第二个选项是创建一个 IQD 文件:
Viewing SQL generated by Impromptu
如果这没有帮助。使用 SQL Server Profiler 查看即兴发送的真实 SQL 语句:
SQL Server Profiler

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-02-08
    • 1970-01-01
    • 2021-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-07
    相关资源
    最近更新 更多