Código SQL:
Ver original
-- SpoolEmployeesToCSV.sql SET ECHO OFF SET TERMOUT OFF SET TRIMSPOOL ON SET PAGESIZE 1000 SET LINESIZE 2000 SET FEEDBACK OFF SPOOL C:\Users\Public\Music\SPOOLPRD.csv SELECT TO_CHAR(prd_lvl_child) || ',' || TO_CHAR(prd_lvl_number) || ',' FROM prdmstee WHERE prd_lvl_id = 1 OR prd_lvl_id = 0; SPOOL OFF