Loading the .tbl file I've got this error:

[nicola@localhost ~]$ mclient -d dbmonet  -s  "COPY  INTO  monet.SUPPLIER  FROM  STDIN  USING  DELIMITERS ',','\\n','\"'" - < /home/nicola/Scrivania/tabellemonetdb/supplier.tbl
user(nicola):monetdb
password:
missing separator ',' line 0 expecting 6 got 1  fields
failed to import table
current transaction is aborted (please ROLLBACK)
syntax error, unexpected sqlINT in: "0201"

Why do I get this error? I'm using an ssb schema.

有帮助吗?

解决方案

Without knowing anything about the structure of the supplier.tbl file, my guess (from having used SSBM before) would be that it does not use "," as a field separator, but "|".

My SSBM loading command for the supplier table looks like this:

COPY INTO SUPPLIER FROM '/path/to/supplier.tbl' USING DELIMITERS '|', '|\n' LOCKED;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top