From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
---|---|
To: | windwxc(at)sina(dot)com |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: dump data into complex type table |
Date: | 2008-04-05 05:17:10 |
Message-ID: | 47F70B56.10004@postnewspapers.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
windwxc(at)sina(dot)com wrote:
> hi,everyone,first thank you help me relove the problem about complex type.
> now i have other two question about complex type field.
> firstly, i want to know if the complex type data can be dump into the database by command 'copy'?
> secondly, i try it but failure. The following is detail about my operation. my data which need be dump into data is text file and the table accepting the data is include a complex type field.
> format of text file is :
> "dd",20,"1,"010301040213","石红","红河州弥勒县虹溪镇虹溪村委会东门村小组","K236","(2005-1-1,2005-12-31)""
> "ww",2,"2,"010301010975","陈永华","红河州弥勒县虹溪镇虹溪村委会西门村小组","K236","(2005-1-1,2005-12-31)""
>
Try using tabs and omitting the double quotes.
If you still have problems, use pg_dump to dump a table containing your
complex values and examine the dump file. That'll show you how it needs
to be done.
--
Craig Ringer
From | Date | Subject | |
---|---|---|---|
Next Message | Teodor Sigaev | 2008-04-05 05:42:15 | Re: Direct access to GIST structure |
Previous Message | Scott Marlowe | 2008-04-05 04:59:34 | Re: Conversion to 8.3 |