PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 2024 → Handling multiple results sets from a single HExecuteSQLQuery call
Handling multiple results sets from a single HExecuteSQLQuery call
Iniciado por Nathan, mai., 11 2023 8:50 AM - 2 respostas
Publicado em maio, 11 2023 - 8:50 AM
I would like to return multiple results sets from a single query execution similar to how it's handled in JAVA in this post:

https://stackoverflow.com/questions/9696572/queries-returning-multiple-result-sets

Is this even possible in WinDev? if so what is the required syntax?

I've tried instead running multiple HExecuteSQLQuery calls but they seem to have incredibly bad time complexity when nested as they massively slow down the execution of my program.

Any help or alternative options is appreciated.
Publicado em maio, 18 2023 - 1:29 AM
Hi.
SQL Command UNION ALL, like the used in the example of stackoverflow, is avaiable in Windev.
Membro registado
4 mensagems
Publicado em maio, 24 2023 - 12:49 PM
Thank you for your answer, Jose

Unfortunately the UNION ALL command only works on results sets of equal columns. I'm trying to pull multiple sets of very different data with one request.