[英]PL/SQL load script from file
I need to load a big portion of data using inserts in multiple .sql
files. 我需要使用多个.sql
文件中的插入内容来加载大部分数据。 I'm creating those files with application using : 我正在使用以下应用程序创建这些文件:
using (System.IO.StreamWriter file = new System.IO.StreamWriter(path, true, Encoding.ASCII))
{
file.WriteLine(text);
}
Where path is file path and text its another insert going into this file. 其中path是文件路径,将其另一个文本插入该文件。 Now I have a problem loading those inserts in Oracle SQL Developer using command: 现在,我有一个使用命令在Oracle SQL Developer中加载这些插入的问题:
@"C:\Users\Desktop\inserts1.sql"
because developer change polish characters like ć
, ó
into other characters. 因为开发人员将诸如ć
, ó
这样的波兰语字符更改为其他字符。
Is the problem inside my app to create different files with different encoding or there is a way to load that properly in Developer. 是我的应用程序内部使用不同编码创建不同文件的问题,还是有一种方法可以在Developer中正确加载该文件。
而不是Encoding.ASCII
使用Encoding.Default
(这是ANSI编码)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.