PunyGear

  • 计算机
  • 旅游
  • 3D打印
  • 游戏
  • 生活
每个小齿轮都有推动时代前进的力量。
  1. 首页
  2. 计算机
  3. 正文

Cognos往SQL中传递提示值

2022-04-28 1572点热度 0人点赞 0条评论

To pass a prompt value say – “p_reportdate” to sql query then syntax is as below

select * from table1 where table1.date = #prompt('p_reportdate')#

if the prompt- “p_name” is multi select then

select * from table2 where table2.name in (#promptmany('p_name')# )

原文链接:https://tek-jedi.com/2017/06/19/cognos-pass-prompt-value-to-sql-query/

相关

本作品采用 知识共享署名 4.0 国际许可协议 进行许可
标签: Cognos
最后更新:2022-04-28

PunyGear

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

您需要 登录 之后才可以评论

COPYRIGHT © 2024 PunyGear. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang