问题描述
我想通过以下命令将所有数据从txt
复制到Postgresql
:
copY employees FROM 'C:/Users/Public/staff.txt' WITH (FORMAT csv);
但是出现标题错误。
这是我来自staff.txt
的示例:
1,0XSUJ0F,Jax,Teller,John,15.01.1944,02.12.1968,02.12.1988,Vice-president,3500
我的employee
表中有number,fin,name,surname,patronimic,birthdate,contractstart,contractend,position
和salary
列。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)