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

160
Visualizações
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 à 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