• <small id='5GuFt'></small><noframes id='5GuFt'>

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

          <bdo id='5GuFt'></bdo><ul id='5GuFt'></ul>
        <tfoot id='5GuFt'></tfoot>
      1. 在 sqlite3 中修改列的类型

        Modify a Column#39;s Type in sqlite3(在 sqlite3 中修改列的类型)

              <tbody id='WgQCm'></tbody>

            <legend id='WgQCm'><style id='WgQCm'><dir id='WgQCm'><q id='WgQCm'></q></dir></style></legend>

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

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

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

                  本文介绍了在 sqlite3 中修改列的类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我对 SQLite 3 还很陌生,刚才我不得不向我现有的表中添加一列.我开始这样做:ALTER TABLE thetable ADD COLUMN category;.

                  I'm pretty new to SQLite 3 and just now I had to add a column to an existing table I had. I went about doing that by doing: ALTER TABLE thetable ADD COLUMN category;.

                  当然,我忘记指定该列的类型.我考虑做的第一件事是删除该列,然后重新添加它.但是,SQLite 似乎没有这样做的简单方法,我不得不备份表并在没有列的情况下重新创建它.

                  Of course, I forgot to specify that column's type. The first thing I was thinking about doing was dropping that column and then re-adding it. However, it seems that SQLite does not have a simple way of doing this, and I would have had to backup the table and re-create it without the column.

                  这看起来很乱,我想知道是否只有一种修改/添加列类型的方法.我想是这样,但我的搜索没有产生任何结果,我对 SQLite 不熟悉,我想这是因为我在查询中的措辞不正确.

                  This seems messy, and I was wondering if there were just a way of modifying/adding a column's type. I would imagine so, but my searching around yielded no results, being new to SQLite, I imagine it was due to my wording being off in the query.

                  推荐答案

                  SQLite 不支持删除或修改列,显然.但请记住,SQLite 中的列数据类型也不是严格的.

                  SQLite doesn't support removing or modifying columns, apparently. But do remember that column data types aren't rigid in SQLite, either.

                  另见:

                  • SQLite 修改列

                  这篇关于在 sqlite3 中修改列的类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Python Pandas write to sql with NaN values(Python Pandas 使用 NaN 值写入 sql)
                  MySQL Insert amp; Joins(MySQL 插入 amp;加入)
                  MySQL concat() to create column names to be used in a query?(MySQL concat() 创建要在查询中使用的列名?)
                  NodeJS responded MySQL timezone is different when I fetch directly from MySQL(当我直接从 MySQL 获取时,NodeJS 响应 MySQL 时区不同)
                  WHERE datetime older than some time (eg. 15 minutes)(WHERE 日期时间早于某个时间(例如 15 分钟))
                  How to get a list of months between two dates in mysql(如何在mysql中获取两个日期之间的月份列表)

                    <small id='3mR3v'></small><noframes id='3mR3v'>

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