Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

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 21st, 2003, 05:57 PM
punkisdead's Avatar
punkisdead punkisdead is offline
Moron
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Michigan, USA
Posts: 170 punkisdead User rank is Private First Class (20 - 50 Reputation Level)punkisdead User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 31 m 37 sec
Reputation Power: 6
importing data/outputing data mysql

I'm fairly new to MySQL and have been presented with a couple of problems. I have a .csv file with names addresses and such which looks like so:

"Joe Smith"
"1234 Main St. Sometown, NY 11111"
"1968"

What I need to do is:
1. Import these values into a table called clients.

2. Sort these values by street address(street name) so I can print them out.

Any help would be appreciated...

Reply With Quote
  #2  
Old July 22nd, 2003, 09:53 AM
nao's Avatar
nao nao is offline
junior vice president
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: Springfield
Posts: 251 nao User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Question

Are you running Windows? Do you have Microsoft Access? You can import the data into Access from a CSV file, then export it to MySQL via ODBC (no text commands, totally visual way of doing it).

Let me know if you want help setting up ODBC for Win32.

All you want to do is print out the info, right? Don't you want to query MySQL via PHP/PERL?

Best,

nao
__________________
NAO'S DISCLAIMER
YOU MAY FREELY APPLY, ENTIRELY AT YOUR OWN RISK, ANY ADVICE,
IDEAS, METHODOLOGIES OR CODE CONTAINED IN THIS POSTING.

Reply With Quote
  #3  
Old July 22nd, 2003, 11:53 AM
punkisdead's Avatar
punkisdead punkisdead is offline
Moron
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Michigan, USA
Posts: 170 punkisdead User rank is Private First Class (20 - 50 Reputation Level)punkisdead User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 31 m 37 sec
Reputation Power: 6
I could either do this on windows or linux, as I have both running at my desk. A little background on this project. One of the managers in my office gave me a printed list of names, addresses, and a few other details. Asked me if I could figure out a way to reorder them so that they are ordered by street address. So I scanned them in ran them through an OCR app that I have which can output to csv file. Then figured I could import them into a simple table to print them out in the order I want. I don't plan on reusing the information, other than to output it in the format requested.

Reply With Quote
  #4  
Old July 22nd, 2003, 02:37 PM
nao's Avatar
nao nao is offline
junior vice president
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: Springfield
Posts: 251 nao User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Thumbs up ok

If you have Microsoft Access, all you have to do is open a new database in access (use the wizard if you're not sure how to do this) and right click on the database window, selecting 'Import'. Then just choose the file format (CSV) and import!

Then you'll have an Access DB that you can visually sort and print. You can get really creative with 'Reports' etc., MS Access has a great helps section on how to do that.

best,

nao

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > importing data/outputing data mysql


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway