• <tfoot id='rK9vi'></tfoot>

      <legend id='rK9vi'><style id='rK9vi'><dir id='rK9vi'><q id='rK9vi'></q></dir></style></legend>
        <bdo id='rK9vi'></bdo><ul id='rK9vi'></ul>
    1. <small id='rK9vi'></small><noframes id='rK9vi'>

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

        如何在 MySQL 中保留记录更新的历史记录?

        How to keep history of record updates in MySQL?(如何在 MySQL 中保留记录更新的历史记录?)

      1. <legend id='7rPKR'><style id='7rPKR'><dir id='7rPKR'><q id='7rPKR'></q></dir></style></legend>

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

                <small id='7rPKR'></small><noframes id='7rPKR'>

                  本文介绍了如何在 MySQL 中保留记录更新的历史记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我必须在 PHP 中创建一个代码,让我可以在 MySQL 数据库中保留记录更新的历史记录,以便我可以按日期查找旧版本.

                  I have to create a code in PHP that will allow me to keep the history of record updates in MySQL database so I can find by date an old revision.

                  这是我实际想要实现的示例:http://en.wikipedia.org/w/index.php?title=突尼斯&action=历史

                  Here is the example of what I actualy want to achive: http://en.wikipedia.org/w/index.php?title=Tunisia&action=history

                  这些数据主要是我们为生成报告和提取指数而记录的有关公司的数字.

                  The data are mostly Numbers that we record about the company to generate reports and to extract indices.

                  我计划使用 codeigniter,因为它很简单,我正在寻找有关使用相同方法在数据库中保留修改历史的框架或开源项目的想法.

                  I plan to use codeigniter for it's simplicity and I'm looking for idea about a framework or an opensource project that use the same approach to keep history of modifications in the database.

                  推荐答案

                  最简单的解决方案(取决于您的具体需求)可能是在您的表中添加一个 on update/insert/delete 触发器,这样您就可以执行额外的日志记录插入/更新/删除数据时.这样即使是对数据库的手动干预也将被覆盖......

                  The easiest solution (depending on your specific needs) would probably be to add an on update/insert/delete trigger to your table, so you can perform extra logging when data is inserted/updated/deleted. That way even manual interventions on the db will be covered...

                  检查 http://dev.mysql.com/doc/refman/5.1/en/triggers.html 了解更多信息.

                  Check http://dev.mysql.com/doc/refman/5.1/en/triggers.html for more information.

                  这篇关于如何在 MySQL 中保留记录更新的历史记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  <legend id='YgIA3'><style id='YgIA3'><dir id='YgIA3'><q id='YgIA3'></q></dir></style></legend>
                      <tbody id='YgIA3'></tbody>

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

                      <tfoot id='YgIA3'></tfoot>
                    1. <small id='YgIA3'></small><noframes id='YgIA3'>

                          • <bdo id='YgIA3'></bdo><ul id='YgIA3'></ul>