使用存储过程返回的数据进行操作

Manipulate with data returned by stored procedure

我在 SAP HANA 中存储了过程(我们称之为 testProcedure),其中包含 returns 数据(例如 col1 | col2 | col3)。不幸的是我不能修改这个存储过程。

我如何在程序执行后使用这些数据进行操作(过滤等)(目前我使用 call testProcedure() 执行它?

我正在寻找类似 select * from testProcedure() where col1 = 'hello'

的内容

您所描述的适用于用户定义的 table 函数,但不适用于过程。 如果您的过程使用默认结果集,则无法过滤或以其他方式处理结果集。它将按原样返回到 HANA 工作室。 如果结果集是通过输出参数返回的,您可以将其分配给 table 变量,并在从该 table 变量中进行选择时应用过滤器。