<tfoot id='shAFD'></tfoot>

        <bdo id='shAFD'></bdo><ul id='shAFD'></ul>

      <small id='shAFD'></small><noframes id='shAFD'>

    1. <i id='shAFD'><tr id='shAFD'><dt id='shAFD'><q id='shAFD'><span id='shAFD'><b id='shAFD'><form id='shAFD'><ins id='shAFD'></ins><ul id='shAFD'></ul><sub id='shAFD'></sub></form><legend id='shAFD'></legend><bdo id='shAFD'><pre id='shAFD'><center id='shAFD'></center></pre></bdo></b><th id='shAFD'></th></span></q></dt></tr></i><div id='shAFD'><tfoot id='shAFD'></tfoot><dl id='shAFD'><fieldset id='shAFD'></fieldset></dl></div>

    2. <legend id='shAFD'><style id='shAFD'><dir id='shAFD'><q id='shAFD'></q></dir></style></legend>
    3. 如何在MySQL数据库中插入文件?

      How to insert a file in MySQL database?(如何在MySQL数据库中插入文件?)
      <i id='DFGLN'><tr id='DFGLN'><dt id='DFGLN'><q id='DFGLN'><span id='DFGLN'><b id='DFGLN'><form id='DFGLN'><ins id='DFGLN'></ins><ul id='DFGLN'></ul><sub id='DFGLN'></sub></form><legend id='DFGLN'></legend><bdo id='DFGLN'><pre id='DFGLN'><center id='DFGLN'></center></pre></bdo></b><th id='DFGLN'></th></span></q></dt></tr></i><div id='DFGLN'><tfoot id='DFGLN'></tfoot><dl id='DFGLN'><fieldset id='DFGLN'></fieldset></dl></div>

          <tfoot id='DFGLN'></tfoot>
          • <legend id='DFGLN'><style id='DFGLN'><dir id='DFGLN'><q id='DFGLN'></q></dir></style></legend>

            <small id='DFGLN'></small><noframes id='DFGLN'>

              <tbody id='DFGLN'></tbody>
              • <bdo id='DFGLN'></bdo><ul id='DFGLN'></ul>
                本文介绍了如何在MySQL数据库中插入文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想使用网络服务在驻留在远程网络服务器上的 MYSQL 数据库中插入一个文件.

                I want to insert a file in MYSQL database residing on a remote webserver using a webservice.

                我的问题是:什么类型的表列(例如 varchar 等)将存储文件?如果是文件,插入语句会有所不同吗?

                My question is: What type of table column (e.g. varchar, etc.) will store a file? And will the insert statement be somewhat different in case of a file?

                推荐答案

                BLOB 数据类型最适合存储文件.

                The BLOB datatype is best for storing files.

                • 参见:如何存储 .pdf使用 PHP 将文件作为 BLOB 导入 MySQL?
                • MySQL BLOB 参考手册 有一些有趣的评论
                • See: How to store .pdf files into MySQL as BLOBs using PHP?
                • The MySQL BLOB reference manual has some interesting comments

                这篇关于如何在MySQL数据库中插入文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Bogus foreign key constraint fail(虚假外键约束失败)
                how to get last insert id after insert query in codeigniter active record(如何在codeigniter活动记录中插入查询后获取最后一个插入ID)
                Force InnoDB to recheck foreign keys on a table/tables?(强制 InnoDB 重新检查表/表上的外键?)
                How to auto generate migrations with Sequelize CLI from Sequelize models?(如何使用 Sequelize CLI 从 Sequelize 模型自动生成迁移?)
                Clear MySQL query cache without restarting server(无需重启服务器即可清除 MySQL 查询缓存)
                ALTER TABLE to add a composite primary key(ALTER TABLE 添加复合主键)
                  <bdo id='Eihde'></bdo><ul id='Eihde'></ul>
                    <tbody id='Eihde'></tbody>

                    <small id='Eihde'></small><noframes id='Eihde'>

                    <tfoot id='Eihde'></tfoot>

                        <i id='Eihde'><tr id='Eihde'><dt id='Eihde'><q id='Eihde'><span id='Eihde'><b id='Eihde'><form id='Eihde'><ins id='Eihde'></ins><ul id='Eihde'></ul><sub id='Eihde'></sub></form><legend id='Eihde'></legend><bdo id='Eihde'><pre id='Eihde'><center id='Eihde'></center></pre></bdo></b><th id='Eihde'></th></span></q></dt></tr></i><div id='Eihde'><tfoot id='Eihde'></tfoot><dl id='Eihde'><fieldset id='Eihde'></fieldset></dl></div>
                      • <legend id='Eihde'><style id='Eihde'><dir id='Eihde'><q id='Eihde'></q></dir></style></legend>