| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Ackermann function (was factorial)
Hi,
It's been a while since I knew the vocabulary.
But I think for pure SQL that is correct.
Now in SQL/PSM you can always do it with recursive calls (and every recursion can be turned
iterative I dimly remember).
DB2 UWO's SQL UDFs don't support recursive calls today. But that's our bad, not SQL/PSM's ;-)
You could use a "dynamic compound statement" and use a table as stack. You've got 64K to code it :-)
Cheers
Serge
-- Serge Rielau DB2 UDB SQL Compiler Development IBM Software Lab, CanadaReceived on Mon Jan 07 2002 - 18:07:05 CST
![]() |
![]() |