How to insert image in mysql database(table)?

后端 未结 8 2006
野趣味
野趣味 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:33

    Step 1: open your mysql workbench application select table. choose image cell right click select "Open value in Editor"

    Step 2: click on the load button and choose image file

    Step 3:then click apply button

    Step 4: Then apply the query to save the image .Don't forgot image data type is "BLOB". Step 5: You can can check uploaded image

提交回复
热议问题