pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How do I import this?
3+ messages / 3 participants
[nested] [flat]

* How do I import this?
@ 2001-02-16 17:32 Julio Cuz, Jr. <jcuz@rccd.cc.ca.us>
  2001-02-16 17:58 ` Re: How do I import this? Adam Lang <aalang@rutgersinsurance.com>
  2001-02-16 18:24 ` Re: How do I import this? Josh Berkus <josh@agliodbs.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Julio Cuz, Jr. @ 2001-02-16 17:32 UTC (permalink / raw)
  To: pgsql-php

Hi--

I'm having problems importing a file that contains the following data 
(close to 500 lines):

sample:
----------------
"Heritage";"5/2/00";"EOPS";12/30/1899 15:00:00;12/30/1899 
17:00:00;12/30/1899 17:00:00;12/30/1899 15:00:00;"Claudette 
Ellis";"Riverside";"cellis";"8123";100144;5/2/2000 0:00:00;"EOPS OPR Review 
Staff Mtg";;"12";"12 Chairs and enough  tables (set up) in a hollow square";
----------------

The delimiter is ";"  and I'm using this:

COPY FROM <filename> INTO <mydbase> USING DELIMITER |;|

And it says bad format...Help!

Julio Cuz, Jr.
Riverside Community College
jcuz@rccd.cc.ca.us




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How do I import this?
  2001-02-16 17:32 How do I import this? Julio Cuz, Jr. <jcuz@rccd.cc.ca.us>
@ 2001-02-16 17:58 ` Adam Lang <aalang@rutgersinsurance.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Adam Lang @ 2001-02-16 17:58 UTC (permalink / raw)
  To: pgsql-php

Are the date fields meshing?

I notice you have "5/2/00"

If that is date in your database, it won't take it because of the quotes.

Check to make sure all your data is formatted correctly.

Also, the stuff surrounded by quotes, the quotes will be inputted into the
fields also.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Julio Cuz, Jr." <jcuz@rccd.cc.ca.us>
To: <pgsql-php@postgresql.org>
Sent: Friday, February 16, 2001 12:32 PM
Subject: [PHP] How do I import this?


> Hi--
>
> I'm having problems importing a file that contains the following data
> (close to 500 lines):
>
> sample:
> ----------------
> "Heritage";"5/2/00";"EOPS";12/30/1899 15:00:00;12/30/1899
> 17:00:00;12/30/1899 17:00:00;12/30/1899 15:00:00;"Claudette
> Ellis";"Riverside";"cellis";"8123";100144;5/2/2000 0:00:00;"EOPS OPR
Review
> Staff Mtg";;"12";"12 Chairs and enough  tables (set up) in a hollow
square";
> ----------------
>
> The delimiter is ";"  and I'm using this:
>
> COPY FROM <filename> INTO <mydbase> USING DELIMITER |;|
>
> And it says bad format...Help!
>
> Julio Cuz, Jr.
> Riverside Community College
> jcuz@rccd.cc.ca.us




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How do I import this?
  2001-02-16 17:32 How do I import this? Julio Cuz, Jr. <jcuz@rccd.cc.ca.us>
@ 2001-02-16 18:24 ` Josh Berkus <josh@agliodbs.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Josh Berkus @ 2001-02-16 18:24 UTC (permalink / raw)
  To: pgsql-php

Mr. Cuz,

	Given the special meaning of the semi-colon in PostgreSQL (end of
command or Execute) a semi-colon is possibly the worst delimiter you
could have chosen.  Try something else, such as a comma or pipe.

					-Josh Berkus
-- 
______AGLIO DATABASE SOLUTIONS___________________________
                                        Josh Berkus
   Complete information technology      josh@agliodbs.com
    and data management solutions       (415) 565-7293
   for law firms, small businesses       fax  621-2533
    and non-profit organizations.       San Francisco



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-02-16 18:24 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-16 17:32 How do I import this? Julio Cuz, Jr. <jcuz@rccd.cc.ca.us>
2001-02-16 17:58 ` Adam Lang <aalang@rutgersinsurance.com>
2001-02-16 18:24 ` Josh Berkus <josh@agliodbs.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox