Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 AS400 中使用声明临时表创建用户定义函数?
我无法在父过程下创建临时表,因为我正在使用并行作业。所以我需要在函数内创建临时表只对我有帮助。
有没有人知道解决方案,请在这里更新朋友。
临时表示例:
DECLARE GLOBAL TEMPORARY TABLE nametemporarychoice AS ( YOURQUERYHERE ) WITH DATA WITH REPLACE NOT LOGGED;
你可以像这样使用你的桌子:
select * from qtemp.nametemporarychoice
或像这样:
select * from session.nametemporarychoice