开发者

Creating primary key on two columns

开发者 https://www.devze.com 2023-01-21 16:34 出处:网络
I am using SQLite GUI Browser to work with the database. I can\'t find any button to make primary key on two or mor开发者_开发问答e columns. How to do this?SQLite does not support adding a constraint.

I am using SQLite GUI Browser to work with the database. I can't find any button to make primary key on two or mor开发者_开发问答e columns. How to do this?


SQLite does not support adding a constraint.

You have to create a new table, specifying its whole column structure, and import old data into the new table. Then remame the new one, after having dropped the old one.

0

精彩评论

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