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

167
Vistas
Error :"Bind variable ? not set"... while binding the parameter multiple times in Snowflake Stored Procedures , the following is my Stored Procedure
create or replace procedure check(vendor varchar)
returns varchar
language javascript
execute as caller
as
$$
var command7=`update test set id_null=( select count(*) from table where lower(trim(source))=? and id is null), 1_null=(select count(*) from table where lower(trim(source))=? and 1 is null), 2_null=(select count(*) from table where lower(trim(source))=? and 2 is null) where vendor=concat('${VENDOR}','ABC')`;
var stmt7=snowflake.createStatement({sqlText: command7, binds: [VENDOR], binds: [VENDOR], binds: [VENDOR]});
var rs7=stmt7.execute();
$$

Error returned: "Bind variable ? not set"

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Instead of this line:

var stmt7=snowflake.createStatement({sqlText: command7, binds: [VENDOR], binds: [VENDOR], binds: [VENDOR]});

Try this one:

var stmt7=snowflake.createStatement({sqlText: command7, binds: [VENDOR, VENDOR, VENDOR]});
about 4 years ago · Juan Pablo Isaza Denunciar
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