我试图将数据从.csv文件写入我的postgreSQL数据库。连接是好的,但是当我跑我的工作,我得到以下错误:Talend:将数据写入PostgreSQL数据库错误
Exception in component tPostgresqlOutput_1
org.postgresql.util.PSQLException: ERROR: zero-length delimited identifier at or near """"
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1592)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1327)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:192)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:336)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:328)
at talend_test.exporttoexcel_0_1.exportToExcel.tFileInputDelimited_1Process(exportToExcel.java:568)
at talend_test.exporttoexcel_0_1.exportToExcel.runJobInTOS(exportToExcel.java:1015)
at talend_test.exporttoexcel_0_1.exportToExcel.main(exportToExcel.java:886)
我的工作很简单: tFileInputDelimiter - > PostgreSQL_Output
我认为错误意味着双引号应该被单引号(“” - >''),但是我如何在Talend中编辑这个?
或者是另一个原因? 任何人都可以帮助我吗?
谢谢!在库窗格
请告诉我们正在执行 –
而它看起来像一个空的列名,或在列给我一个空值的SQL语句。需要查看整个工作,包括输入和输出的模式。 – drmirror
我正在使用[Talend教程]中的customer.csv文件(http://www.talendforge.org/tutorials/data/tuto001/001.zip)。这是我插入到没有表或任何东西的新数据库中,并选择了创建新表的选项(如果它不存在)。 – Tjekkles