sql developer-how spool with set sqlformat delimited instructions and have ANSI encoding output file

问题描述

  • 我和 sql developer 一起执行这两个脚本:
  1. 代码: 线轴认.csv 设置sql格式 从双中选择“à”; 脱机

文件 defaut.csv 有 ANSI 编码

  1. 代码: 线轴定界.csv 设置 sqlformat 分隔“;” 从双中选择“à”; 脱机

文件 delimit.csv 具有 UTF-8(无 BOM)编码

我需要格式 'field1;field2;...' ,sqlformat 分隔为“;”,但使用 ANSI 编码

一些帮助? 谢谢。

解决方法

试试

 set encoding UTF-8

然后假脱机您的文件,它应该具有该编码。这对我的示例查询和 sqlformat 很有用。

enter image description here