开发者

Can a SQLite table have more unique fields other than the primary key?

I don't want a composite primary key. All I want is 开发者_如何学Cthat another field must be also unique.


Yes, you just need to mark the column as unique.

http://www.sqlite.org/lang_createtable.html

Look under SQL Data Constraints.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜