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

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

        如何在 SQLite 中为 DELETE 启用 LIMIT?

        How do you enable LIMIT for DELETE in SQLite?(如何在 SQLite 中为 DELETE 启用 LIMIT?)
          <tbody id='vo9Cp'></tbody>
          <legend id='vo9Cp'><style id='vo9Cp'><dir id='vo9Cp'><q id='vo9Cp'></q></dir></style></legend>
          <tfoot id='vo9Cp'></tfoot>
                <i id='vo9Cp'><tr id='vo9Cp'><dt id='vo9Cp'><q id='vo9Cp'><span id='vo9Cp'><b id='vo9Cp'><form id='vo9Cp'><ins id='vo9Cp'></ins><ul id='vo9Cp'></ul><sub id='vo9Cp'></sub></form><legend id='vo9Cp'></legend><bdo id='vo9Cp'><pre id='vo9Cp'><center id='vo9Cp'></center></pre></bdo></b><th id='vo9Cp'></th></span></q></dt></tr></i><div id='vo9Cp'><tfoot id='vo9Cp'></tfoot><dl id='vo9Cp'><fieldset id='vo9Cp'></fieldset></dl></div>

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

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

                  本文介绍了如何在 SQLite 中为 DELETE 启用 LIMIT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  使用 PHP,我有一个简单的数据库,可以存储具有相同内容的多个项目.我想在使用 DELETE 时删除第一次出现的实例.

                  Using PHP, I have a simple database that may store multiple items with the same content. I want to delete the first occurrence of an instance when I use DELETE.

                  如何在使用 PHP 的 SQLite 中为 DELETE 启用 LIMIT?

                  How do you enable LIMIT for DELETE in SQLite using PHP?

                  推荐答案

                  您无法在 PHP 中启用这些选项,您需要自己编译 SQLite 才能启用这些选项.重要的是,您需要从 SQLite 下载页面<下载完整版,而不是合并版源代码./a>.

                  You cannot enable these options from within PHP, you need to compile SQLite yourself in order to enable these options. Importantly, you need to download the full version, not the amalgamation source release from SQLite download page.

                  如果您使用的是 Unix,请获取 sqlite-3.6.20.tar.gz tarball 并下载它.然后:

                  If you're on Unix, get the sqlite-3.6.20.tar.gz tarball and download it. Then:

                  tar xzf sqlite-3.6.20.tar.gz
                  cd sqlite-3.6.20
                  export CFLAGS='-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1'
                  ./configure
                  make
                  

                  然后您将拥有 sqlite3 命令行实用程序和 .libs 子目录中的库文件.

                  Then you'll have the sqlite3 command-line utility and the library files in the .libs subdirectory.

                  这篇关于如何在 SQLite 中为 DELETE 启用 LIMIT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  SQLite loop statements?(SQLite 循环语句?)
                  Can I use parameters for the table name in sqlite3?(我可以在 sqlite3 中使用表名的参数吗?)
                  SQL - Inserting a row and returning primary key(SQL - 插入一行并返回主键)
                  How to get the number of rows of the selected result from sqlite3?(如何从sqlite3中获取所选结果的行数?)
                  Python : How to insert a dictionary to a sqlite database?(Python:如何将字典插入到 sqlite 数据库中?)
                  What are the advantages of VistaDB(VistaDB有什么优势)
                    <legend id='sOtJ4'><style id='sOtJ4'><dir id='sOtJ4'><q id='sOtJ4'></q></dir></style></legend>

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

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

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