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

159
Vistas
SnowFlake stored procedure to delete a row from a table based on the date
create or replace procedure "ETL"."ACQ".SP_FILE_RETENT("Trgt_DB" VARCHAR, "Trgt_Schema" VARCHAR, "Trgt_Table" VARCHAR, "Trgt_Stage" VARCHAR)
returns string
language JavaScript
EXECUTE AS CALLER
as
$$

var remove_data_tbl = `delete from '`+Trgt_Table+`' where last_modified = current_date()`;
var remove_remove_data_tbl_sql = {sqlText: remove_data_tbl };
var remove_data_tbl_create = snowflake.createStatement(remove_remove_data_tbl_sql);
var remove_details_exec = remove_data_tbl_create.execute();

$$;

CALL "ETL"."ACQ".SP_FILE_RETENT('ETL', 'ACQ', 'METADATA', 'FILE_RETENTION');

when calling this procedure, it won't delete the rows from my table METADATA I have back ticks in place before 'delete' and before the + and I have other back ticks after the other plus and before the semi colon

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