Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用pgAdmin 4导入CSV postgresql_Sql_Postgresql_Csv - Fatal编程技术网

使用pgAdmin 4导入CSV postgresql

使用pgAdmin 4导入CSV postgresql,sql,postgresql,csv,Sql,Postgresql,Csv,我尝试使用以下代码在表中导入csv文件: COPY sample("Telephone") FROM 'C:\sample1.csv'; 但他给了我这个: 未连接到服务器或与服务器的连接已关闭 有什么问题?我试图在postgresql.conf文件中将参数#log_connections和#log_disconnections从off更改为on,但没有结果。它是否适用于psql?我是postgresql新手,只知道导入csv文件的方法不知道这个问题?它适用于psql?我是postgresql

我尝试使用以下代码在表中导入csv文件:

COPY sample("Telephone")
FROM 'C:\sample1.csv'; 
但他给了我这个:

未连接到服务器或与服务器的连接已关闭


有什么问题?我试图在postgresql.conf文件中将参数#log_connections和#log_disconnections从off更改为on,但没有结果。

它是否适用于
psql
?我是postgresql新手,只知道导入csv文件的方法不知道这个问题?它适用于
psql
?我是postgresql新手,只知道这个方法要导入csv文件,是否不知道此问题?