PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 8th, 2000, 07:28 PM
zonezero zonezero is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 4 zonezero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to zonezero
How the heck do you load in delimited files into a PostgreSQL Table? I have searched a bit in thier documentation and found no answers.

Reply With Quote
  #2  
Old July 9th, 2000, 04:44 AM
Igor Igor is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 1 Igor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi, try

copy into tabl_name from '/home/user/file_ascii.txt'

using delimeters '|';

Best regards,
Igor

Reply With Quote
  #3  
Old July 9th, 2000, 02:35 PM
zonezero zonezero is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 4 zonezero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to zonezero
Oops...thanks. I just discovered that about 2 minutes before reading your post. Thats what I get for drinking way to much coffee and trying to juggle three projects at once.

Now I have to learna Unix way of taking the delimited file from ACCESS and formating it it for the COPY in PostgreSQL. Should be hard knowing Unix tough.

Reply With Quote
  #4  
Old July 10th, 2000, 12:10 AM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
If you have Access 2000, it has saome pretty nifty wizards you can use to create delimited files. If not, I think that the usual "tab-delimited" would do, and then a small Perl script or something...

Reply With Quote
  #5  
Old July 10th, 2000, 01:33 PM
zonezero zonezero is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 4 zonezero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to zonezero
Yeah I have 97, exported today....going to see if it works ok. I know I need to do a couple of conversions...ie access dumped the date and time 07/07/2000 0:00:00 for instance and I need to get rid of that as well as convert the 0 in the boolean to f.

Seems like everytime I try to do something I end up learning a new language...php, sql, html, javascript and now possibly perl ;-]

Randall

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by dwarf:
If you have Access 2000, it has saome pretty nifty wizards you can use to create delimited files. If not, I think that the usual "tab-delimited" would do, and then a small Perl script or something... URL[/quote]



------------------
OpenBSD: How long do you want your server to stay up this millenium without being compromised?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > LOAD in delimited files

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap