Written by

DBA at WebMais Sistemas
Question Lucas Fernandes · Nov 27, 2019

Recursion with SQL

Does Caché have any features similar to PostgreSQL 'WITH RECURSIVE'? Something that allows recursion in SQL.
 

Comments

Benjamin De Boe  Nov 29, 2019 to Evgeny Shvarov

No, we indeed don't support that syntax feature. Like Evgeny said, this recursion is something we'd typically try to wrap inside ObjectScript methods, which you could then expose as a stored procedure.

0
Lucas Fernandes  Nov 29, 2019 to Benjamin De Boe

Thank you Evgeny and Benjamin for answering.

I used the method store procedure to solve this recursion problem.

0