I have a csv file :
SrNo,TradeDate,TradeTime,SettlementNo
1,25-Apr-17,14:48:19,NSE-N-2017077
2,05-May-17,09:33:28,NSE-N-2017084
I am trying to upload this file using the command:
copy public.shares(SrNo,TradeDate,TradeTime,SettlementNo) from 'C:/Users/Dell/Downloads/report_jul2018.csv' with csv header;
It is giving the error:
ERROR: column "srno" of relation "shares" does not exist SQL state: 42703
Any solution?