If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Help with large UPDATE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-25-04, 19:38
qemart qemart is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, Canada
Posts: 1
PLEASE Help with large UPDATE

I have a table
ID, FILENAME, FILEPATH, DATA1, DATA2, DATA3, DATA4

I already have info in ID, FILENAME, FILEPATH but need to update the DATA fields according to the ID. All the information exists currently in a 15000 row CSV text file where table.DATA1 would actually be CONCAT (DATA_A, DATA_B, DATA_C) from the CSV file and table.DATA 2, 3 and 4 would be straight copies of DATA D, E and F from the CSV file.

How could I set up the SQL statement to avoid having 15000 seperate "UPDATE DATA1,2,3 WHERE ID=x" statements?

Any help is most appreciated.

Last edited by qemart; 04-02-04 at 00:38.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On