Can I alter a column in an sqlite table to AUTOINCREMENT after creation?

后端 未结 11 1821
野趣味
野趣味 2020-12-13 13:08

Can I make a field AUTOINCREMENT after made a table? For example, if you create a table like this:

create table person(id integer primary key, n         


        
11条回答
  •  失恋的感觉
    2020-12-13 13:42

    Yes, you can make a column which is autoincrement. Modify the table and add a column. Keep in mind that it is of type INTEGER Primary Key.

提交回复
热议问题