1

我的数据库如下所示:

id standard_name organism pmid category_code sub_category_code members_ezid
0 AAANWWTGC_UNKNOWN Homo sapiens 15735639 C3 TFT ["4208", "481"]

pgloader csv.load然后我想通过在 PostgreSQL 表中加载数据库来执行以下文件:

LOAD CSV
     FROM 'geneset.csv' (a,b,c,d,e,f,g)
     INTO postgresql:///pgloader?csv (a,b,c,d,e,f,g)

     WITH truncate,
          skip header = 1,
          fields optionally enclosed by ' ',
          fields escaped by double-quote,
          fields terminated by '\t'

      SET client_encoding to 'latin1',
          work_mem to '80MB',
          standard_conforming_strings to 'on'

   BEFORE LOAD DO
    $$ drop table if exists csv; $$,
    $$ create table csv (
        a text,
        b text,
        c text,
        d text,
        e text,
        f text,
        g text
       );
  $$;

但我得到了错误:

2018-08-29T19:46:52.242000Z ERROR we are reading non quoted csv data and found a quote at 24

我应该使用什么类型来代替text条目 g?

4

0 回答 0