【发布时间】:2010-05-04 17:36:42
【问题描述】:
我可以在sqlite的create table命令中为列创建索引吗?
我在 Android shell 的 sqlite3 中尝试了这个命令。它似乎有效。
sqlite> create table mytest (id integer indexed);
sqlite> .schema
CREATE TABLE mytest (id integer indexed);
但是,在 sqlite 的查询语言规范中,不支持指定要索引的列:
http://www.sqlite.org/lang_createtable.html
我错过了什么吗?
谢谢。
【问题讨论】: