I have something that should be simple but I can't figure it out. Here is my
problem:

I have an exsisting database with an ID number and another field called
image. I have a delimited text file as such:

998|/images/something2.jpg
999|/images/something.jpg

I want to import the text file according to the id number. Ie if the id
number is 999 then replace the image field with "/images/something.jpg" from
the text file. If the in the text file was say 998 then it would change the
image field in the database to include - something2.jpg. Am I making any
sense? Obviously I need to use the LOAD command, but is there a way to use
it to update in this way. Any help greatly appreciated.


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to