How to insert BLOB and CLOB files in MySQL?

前端 未结 6 971
猫巷女王i
猫巷女王i 2020-11-28 08:26

I want to store images and .docx/.doc, .pptx/.ppt, .pdf files using the front end of my software. I don\'t understand how to implement this and how to insert the BLOB and CL

6条回答
  •  渐次进展
    2020-11-28 08:45

    If you are using mysql workbench, just right click on the field (cell) and select 'load value from file' option and then browse to the file and click open and then click on apply. It will automatically generate query like this

    UPDATE `dbname`.`tablename` SET `columnname` = ? WHERE (`row` = '1');
    

提交回复
热议问题