1
我正在使用櫥櫃的android項目。該項目非常簡單,但後來我需要在我的班級中設置一些字段作爲唯一的列。櫥櫃爲SQL-Lite設置一列上的唯一字段
如:
class book {
Long _id;
String name; // this name should be unique
String auther;
}
我無法弄清楚如何做到這一點。
我正在使用櫥櫃的android項目。該項目非常簡單,但後來我需要在我的班級中設置一些字段作爲唯一的列。櫥櫃爲SQL-Lite設置一列上的唯一字段
如:
class book {
Long _id;
String name; // this name should be unique
String auther;
}
我無法弄清楚如何做到這一點。