我有一个csv文件:
SrNo,TradeDate,TradeTime,SettlementNo
1,25-Apr-17,14:48:19,NSE-N-2017077
2,05-May-17,09:33:28,NSE-N-2017084
我正在尝试使用以下命令上传该文件:
copy public.shares(SrNo,TradeDate,TradeTime,SettlementNo) from 'C:/Users/Dell/Downloads/report_jul2018.csv' with csv header;
出现错误:
ERROR: column "srno" of relation "shares" does not exist SQL state: 42703
有解决方案吗?