I am making one android datastorage application.In this my problem is I want to create composite primary key in sqlite table android.I want composite key for two column names. syntax:
public static final String PEN_TABLE_QUERY= " CREATE TABLE if not exists " + PEN_TABLE + "( "+ PEN_ID + " INTEGER , " + MAIN_CATEGORY + " TEXT , " + SUB_CATEGORY + " TEXT , " + PEN_TYPE + " TEXT , " + DESC + " TEXT , " + DATE + " TEXT PRIMARY KEY " +")";
I want primary key for both id and date please help me