开发者

I need to alter a sqlite3 table to add FTS3

开发者 https://www.devze.com 2023-01-01 01:55 出处:网络
I need the ability to add F开发者_开发问答TS3 to a sqlite3 table after it was created, not as it is created.Does anyone know the ALTER syntax to accomplish this?SQLite does not support altering a tabl

I need the ability to add F开发者_开发问答TS3 to a sqlite3 table after it was created, not as it is created. Does anyone know the ALTER syntax to accomplish this?


SQLite does not support altering a table from a normal table to an FTS3 table. All you can do with ALTER TABLE is change the table name or add columns.

You will have to use CREATE VIRTUAL TABLE to make the FTS3 table and then copy the data.

0

精彩评论

暂无评论...
验证码 换一张
取 消