How to insert image in mysql database(table)?

后端 未结 8 2004
野趣味
野趣味 2020-12-13 05:08

I want to insert image into a table like

 CREATE TABLE XX_SAMPLE(ID INT
                       ,IMAGE BLOB);

So can you help out form how t

8条回答
  •  情话喂你
    2020-12-13 05:36

    If I use the following query,

    INSERT INTO xx_BLOB(ID,IMAGE) 
    VALUES(1,LOAD_FILE('E:/Images/xxx.png'));
    

    Error: no such function: LOAD_FILE

提交回复
热议问题