Microsoft
Software
Hardware
Network
Question : Import graphics into MySQL
I have a MySQL database on a Linux host. I can import data from .sql or .csv into my database.
On the server, we are importing graphics one at a time into a binary field.
Is there a way to do any one of the following:
...manually upload the graphics to a folder on the host, then, with a .sql command or script add that data to the database. Each graphic has the same name as the item number. For example, each record would have a field ItemNumber: #### and a field Graphic: the graphic would be named the same ####.jpg
OR
... import graphics from .sql, .csv or MS ACCESS?
Answer : Import graphics into MySQL
I think the easiest method would be to upload your images to a folder, and reference them in your database. If the ItemNumber is used for the image name then a SQL statement like the following should do the trick.
1:
UPDATE yourTable SET Graphic = CONCAT(ItemNumber, ".jpg");
Random Solutions
How to find out what version of remote OpenSSL server is running?
removing xml node from database
Websense - Block Internet Access - Except for Updates
which is the best editor for oracle ?
Can't access Exchange 2003 OWA from Internet
Restarting Footnote numbering in a lenghy completed document
How to increase speed of UltraVNC
can#t Compile PNG Image Lib
How to get an USB speaker to work with Eee PC 900 Xandros Linux
I need to query each group in an OU in the Root Domain and get the group names that has exact identical users.