skip to Main Content

Postgresql – Column is imported as row in CSV file

When I try to copy a CSV file with pgAdmin or just COPY command it shows me this error ERROR: nieprawidłowa składnia wejścia dla typu integer: "1,"A Dijiang","M",24,180,80,"China","CHN","1992 Summer","1992","Summer","Barcelona","Basketball","Basketball Men's Basketball",NA" CONTEXT: COPY olympics_history, line 2, column ID: "1,"A Dijiang","M",24,180,80,"China","CHN","1992…

VIEW QUESTION

Postgresql – How to get count values array1 in array2

I have a table: CREATE TABLE T ( order_id Integer PRIMARY KEY, items_current_order Integer[], items_next_order Integer[] ); INSERT INTO T(order_id, items_current_order, items_next_order) VALUES (4254677, '{1, 1, 1}', '{1, 1}'); INSERT INTO T(order_id, items_current_order, items_next_order) VALUES (4254645, '{1,2,5,6}', '{1,1,6}'); I need…

VIEW QUESTION
Back To Top
Search