1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

UNION with a stored procedure

Discussão em 'Outras Linguagens' iniciado por Stack, Janeiro 27, 2021.

  1. Stack

    Stack Membro Participativo

    This is what I am trying to do

    EXEC sp1 1

    SELECT * FROM x
    UNION
    if(@num <= 1)
    EXEC sp1(2)
    else
    null //want to return null to stop


    I could do this is with a programming language but I don't have an idea what is that I am doing wrong with programming in SQL?

    Continue reading...

Compartilhe esta Página