【发布时间】:2017-02-11 11:34:27
【问题描述】:
我在以 District.csv 命名的 Excel 表中有数据,只需将少数列从 excel 导入以 hc_court_master 命名的 postgres 表
copy hc_court_master (district_cd, category,category1,shrt_nm,court_name)
from 'D:\district.csv'
with (format csv)
我遇到了错误
ERROR: extra data after last expected column
SQL state: 22P04
Context: COPY hc_court_master, line 1: "court_code,court_name,short_c_name,category,dist_no,dist_name,category1"
【问题讨论】:
标签: excel postgresql csv copy etl