私は次のコードを使用しています:
query1=" SELECT distinct copy meta.amz_payment1(\"Date\", settlement_id, type, order_id, "
+ "sku, description, quantity, marketplace, fulfillment, order_city, order_state, "
+ "order_postal, product_sales, shipping_credits, promotional_rebates, "
+ "sales_tax_collected, selling_fees, fba_fees, other_transaction_fees,other, "
+ "total_fmt)"
+ "INTO meta.amz_payment1_copy\n"
+ "from meta.amz_payment1";
stmt.executeUpdate(query1); // line 153
しかし、次のエラーが表示されます。
org.postgresql.util.PSQLException: ERROR: syntax error at or near "." Position: 27 at at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:331) at import_payment.amz_payment.importData(amz_payment.java:153) at import_payment.amz_payment.<init>(amz_payment.java:69)