在 pentaho 中执行 SQL 步骤 [英] Execute SQL step in pentaho

查看:90
本文介绍了在 pentaho 中执行 SQL 步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了转换,其中包括表输入、sql 步骤和 excel o/p 步骤.1)表输入-->运行查询并获取包含sql查询的字段查询"

I have created transformation which includes table input,sql step and excel o/p step. 1)Table input-->Run a query and get the field "query" which includes sql query

从双中选择*"

2) 执行 sql 步骤-->使用 '?' 动态传递该查询字段并启用变量替换3)Excel o/p-Expecting o/p 是应该触发的 sql 查询并在 excel o/p 中获取结果

2)Execute sql step-->Dynamically passing that query field using '?' and enabling variable substitution 3)Excel o/p-Expecting o/p is the sql query should be triggered and get the result in excel o/p

但是我无法从执行 sql 步骤中获取字段..我该怎么做???

But i can't get the fiels from execute sql step..How i can do this???

谢谢卡维莎 S

推荐答案

使用 Database join 而不是 Execute SQL step.Database Join 步骤允许您使用从前面步骤中获得的数据对数据库运行查询.

Use Database join instead of Execute SQL step. The Database Join step allows you to run a query against a database using data obtained from previous steps.

  • Database join Input:您可以在步骤中定义的 SQL 查询中使用 ? 表示法从上一步传递您想要的任何数据.
  • Database join 输出:执行参数化的 SQL 查询并添加新参数作为输出.
  • Database join Input: You can pass any of data you want from previous step using ? notation in SQL query defined inside the step.
  • Database join Output: Executes parametrized SQL query and adds new parameters as an output.

这一步是您第二步所需要的.查看有关文档中的数据库加入步骤的更多信息.

The step is what you need for your 2nd step. See more info about the Database join step in the documentation.

这篇关于在 pentaho 中执行 SQL 步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆