Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-28-2011, 05:51 PM   PM User | #1
turpentyne
Regular Coder

 
Join Date: Aug 2010
Posts: 312
Thanks: 10
Thanked 1 Time in 1 Post
turpentyne is an unknown quantity at this point
merging info into specific column based on ID.

Hi.

I'm both a beginner and out of practice. Can somebody put me in the right direction to figure out how to speed up the populating of my database as I get information?

I have a table with 20 fields in it. A couple fields are used to make sure there are no duplicates - ID column and a name column. Several of the other columns have no data in them - because it will come over time.

I want to figure out how to add in a range of matching info as I get it. In other words, if I have a csv list of names that are in my database, and they all have brown hair. I want to be able to use my csv file to find the matching names in my database and fill their corresponding "hair color" column with "brown".

unless there's another way to do this?

Thanks!
turpentyne is offline   Reply With Quote
Old 09-28-2011, 07:05 PM   PM User | #2
BubikolRamios
Senior Coder

 
Join Date: Dec 2005
Location: Slovenia
Posts: 1,876
Thanks: 114
Thanked 76 Times in 76 Posts
BubikolRamios is on a distinguished road
Import csv file first into db into new table. That would be a start.
Out of many tools to do that I constantly use http://www.heidisql.com/.

When that done ask again (post table structures of table and new table from scv)

That would be a start to clarify yourself what you want to do. If later you will be getting new csv-s, you will have to write a proc for csv imports.
__________________
Found a flower or bug and don't know what it is ?
agrozoo.net galery
if you don't spot search button at once, there is search form:
agrozoo.net galery search

Last edited by BubikolRamios; 09-28-2011 at 07:09 PM..
BubikolRamios is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:48 PM.


Advertisement
Log in to turn off these ads.