Hytham,
Saturday, June 22, 2002, 12:37:21 AM, you wrote:
i have a column of type blob, that i wish to store images in it, but
how
can i right the sql statement to insert the image?
i mean :
insert into tblImages set imageField = ??? where id=999
It's not a correct statement, use UPDATE instead of INSERT.
now what the ??? should be ?
If images are stored on the server, you can use LOAD_FILE() function:
http://www.mysql.com/doc/S/t/String_functions.html
f.e.
UPDATE tblImages SET imageField =
LOAD_FILE('/full/path/to/the/file') WHERE id = 999;
--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ __
/ |/ /_ __/ __/ __ \/ /Victoria Reznichenko
/ /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED]
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net
___/ www.mysql.com
-
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