可能重复:
Is it possible to apply primary key on the text fields in android database文本PrimaryKey的android系统
private static final String CREATE_NEWCUSTOMER =
"create table newcustomer (_id integer autoincrement, " +
"cname text , date text , " + "caddress text);";
在这个
我该如何使用cname
作为主键。
请参阅:http://stackoverflow.com/questions/7591492/is-it-possible-to-apply-primary-key-on-the-text-fields-in-android-database – 2012-02-09 07:51:33