我可以在pgadmin中使用COPY FROM STDIN吗

时间:2019-05-12 00:31:27

标签: postgresql pgadmin-4 postgres-10

我试图在远程Postgres 10.6数据库上的pgadmin 4中使用COPY FROM stdin

我的查询如下:

SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = WARNING;

SET search_path = common, pg_catalog;

COPY "cycle_dates" ("ident", "start_date") FROM stdin;
1706    01-06-2017
1902    31-01-2019
\.

执行查询时,出现以下错误:

ERROR:  syntax error at or near "1706"
LINE 21: 1706 01-06-2017
     ^
SQL state: 42601
Character: 563

我不确定COPY命令的语法是否做错了,还是PgAdmin 4不支持该命令

任何指针表示赞赏

0 个答案:

没有答案
相关问题