开发者

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

开发者 https://www.devze.com 2023-02-28 01:57 出处:网络
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.

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

精彩评论

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