SQL Server - genera archive txt desde aracle

 
Vista:

genera archive txt desde aracle

Publicado por JESSICA (1 intervención) el 03/06/2023 00:06:18
hola amigo tengo un tema al momento de cerar Un procedure

Esta es mi instruction

CREATE OR REPLACE PROCEDURE USUARIO_SPI_INACTIVO
AS
BEGIN


SPOOL c:\pruebas\spi.txt
SET HEADING O

SELECT FICHA||'|'||ID_PERSONA||'|'||NUM_IDEN||'|'||NOMBRE1||'|'||NOMBRE2||'|'||F_INGRESO||'|'||F_RETIRO
FROM TA_RELACION_LABORAL INNER JOIN EO_PERSONA ON EO_PERSONA.ID = TA_RELACION_LABORAL.ID_PERSONA
WHERE TRUNC(F_RETIRO)=TRUNC(SYSDATE);

SET HEADING OFF;
SPOOL OFF;

END;

cuando lo compilo me da este error
Error(2,1): PLS-00103: Encountered the symbol "CADENA" when expecting one of the following: ( ; is with authid as cluster compress order using compiled wrapped external deterministic parallel_enable pipelined result_cache The symbol "is" was substituted for "CADENA" to continue.

no se Como arreglar esto me ayudan por favor
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder