Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

105
Visualizações
While loop in snowflake runs infinitely

I am writing a stored proc which is parsing string based on the delimiter and delimiter value is changing in each cycle to fetch the string left in every iteration. However, the loop never stops with the conditions provided. Code:

While (stringlength >0 && delimiterindex !=0)
{
Perform actions
}

I am unable to figure out what is the problem here. It should exit the loop as soon as all delimiter from string becomes 0. Eg. 'Stackoverflow is great'

After 2 iterations, the index will become 0 and I will be left with 'great' and loop should exit. But it's not happening.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda