Hi there, I'm pretty much a novice to MySQL but lately I've managed to covert a music database from access to mysql with the help of this software, but I've come across a problem.
I have a column of over 10,000 rows containing the file name of each MP3, "filename.MP3" for example. My problem is I need to insert the path location of the MP3 before the file name, like so "c:\database\audio\filename.MP3"
Is there any kind of query code that I can use to insert this into every row ?
Thanks
Inserting text to multiple rows
You should not store redundant information in a database. Rather do that per application logic.
However, you can do that with an UPDATE query:
Note the double slashes - backslashes must be escaped using backslash.
However, you can do that with an UPDATE query:
UPDATE table SET filename=CONCAT('c:\\database\\audio\\', filename)
Note the double slashes - backslashes must be escaped using backslash.
Please login to leave a reply, or register at first.