I'm using mysql Ver 14.14.I have created a mysql table with the attributes id, image_name and myimage.
table "unstruct_tab1" description
"myimage" is a column to hold image location. Am trying to insert image location using the following syntax.
mysql> insert into unstruct_tab1 (id,image,myimage) select 11, 'kola3.jpg' , BulkColumn from Openrowset(Bulk 'Linux path of image location...', Single_BLOB) as img;
Am ending up with the following error for the above syntax:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(Bulk 'Linux location...', BLOB) as img' at line 1
Kindly help me out to resolve the issue.