我試圖將數據從.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