【发布时间】:2016-06-22 21:13:50
【问题描述】:
我需要基本上自动化这个场景。 1-我有一个表 STATS_QUERIES,如下所示: STATS_QUERIES
2-我有一个输出表,我必须在其中存储结果(通过引用前一个表)。它看起来像这样: STATS_RESULTS_CARD
3- PL/SQL 逻辑:
For each row in STATS_QUERIES
• If the object type for the current query is Card:
o Execute the query in the current row and store the results in STATS_RESULTS_CARD
• Else if the object type of the current query is Node:
o …
• And so on.
End Loop
Commit.
如何从表中逐行执行(目标是运行存储在 STATS_QUERIES 表中的查询)并存储在 STATS_RESULT_CARD 中。
非常感谢任何帮助
【问题讨论】:
-
提供了图片的链接。
-
我认为你想做的是创建一个存储过程,但你的逻辑让我迷失了。
-
@DaveKelly,哪部分逻辑,你看不懂。当然,我想创建一个存储过程。