Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

109
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda