Sqlite3: how to reorder columns in a table?

后端 未结 4 849
别跟我提以往
别跟我提以往 2020-12-31 03:42

It seems that it is not straightforward for reordering columns in a sqlite3 table. At least the sqlite manager in firefox

4条回答
  •  生来不讨喜
    2020-12-31 04:07

    You can always order the columns however you want to in your SELECT statement, like this:

    SELECT column1,column5,column2,column3,column4
    FROM mytable
    WHERE ...
    

    You shouldn't need to "order" them in the table itself.

提交回复
热议问题