copy

From: "Duncan Adams (DNS)" <duncan(dot)adams(at)vcontractor(dot)co(dot)za>
To: pgsql-novice(at)postgresql(dot)org
Subject: copy
Date: 2002-04-25 15:00:42
Message-ID: 7DD34E6DF5CD1B4283DDAB96A855DCED2F3286@vodabemail1.vodacom.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

hi all

how do you use the copy command
call me dumb, i have RTFM but i don't seem to get it.

an extract from my dns.txt file.

aeomc04 10.121.4.157
somcmd1 10.121.23.57
aeomc05 10.121.4.162
gsmomc6 10.121.4.154

wire_dev=> copy dns_ip from dns.txt
wire_dev-> ;
ERROR: parser: parse error at or near "dns"
wire_dev=> copy dns_ip from /database/pgsql/dns.txt
wire_dev-> ;
ERROR: parser: parse error at or near "/"
wire_dev=>
wire_dev=> \d dns_ip
Table "dns_ip"
Attribute | Type | Modifier
-----------+-----------------------+----------
dns | character varying(32) |
ip | character varying(32) |

thanx

P.S. sorry my last post was to the wrong group.

Browse pgsql-novice by date

  From Date Subject
Next Message Jerry Thompson 2002-04-25 15:20:50 Shell Script Execution
Previous Message Klaudia Walter 2002-04-25 13:39:39 Problems with \copy