0

我正在尝试通过 c# 代码将 csv 导入 postgres 查询是我猜对但我得到错误:

无法执行查询!错误:22P02:数字类型的输入语法无效:“”1“

我这样做的代码是:

string identification_client = "COPY identification_des_documents_complementaires_export (cle_ref,TRANSPORTEUR, Mode_transport, Code_Pays_ISO_3, Ref_Doc, Nb_Exp) FROM 'E:/MDE/KMP/App_Data/CSV/test_alpha/identification_des_documents_complementaires_export.csv' WITH DELIMITER ',' ";

其中 csv 文件包含此http://prntscr.com/9p22rp 并且数据库具有以下列http://prntscr.com/9p22vp

如何修复这样我就不会再出现这个错误了。

4

0 回答 0