-5
我正在开发一个侧面项目,并正在练习我的SQL查询。我的问题是我如何插入一个图像文件到我有这个查询?从来没有必须或没有被证明如何去做。如何将图像插入到sql查询中
INSERT INTO products (prod_category,prod_title,image,conditions,in_stock,price,description) VALUES ("gaming tower", ,"used","yes",500,"new gaming tower");
刚刚添加,我只是好奇的方法,并使用phpMyAdmin。
无论是作为一个'BLOB'或本地存储它然后将该文件保存路径 – Swellar
您可以检查[这](https://stackoverflow.com/questions/17717506 /如何对上载图像 - 到 - 的MySQL数据库-使用的PHP代码) – hungrykoala