jun*_*ior 5 postgresql export-to-csv
我使用PostgreSQL 9.4.1
我的查询:
copy(select * from city) to 'C:\\temp\\city.csv'
copy(select * from city) to E'C:\\temp\\city.csv'
Run Code Online (Sandbox Code Playgroud)
错误:COPY不允许相对路径归档**********错误**********
错误:COPY到文件SQL状态不允许使用相对路径:42602
我正在使用 pgAdmin v1.5 。第一个查询是
select table_name from information_schema.tables where table_catalog = 'ofbiz' order by table_name
Run Code Online (Sandbox Code Playgroud)
然后我按下下载按钮,pgAdmin将返回一个csv文件,是第一个查询的结果集。

| 归档时间: |
|
| 查看次数: |
13280 次 |
| 最近记录: |