我创建了 2 个表,我希望这 2 个表有关系。我将创建更多表,它们也应该有关系,但是,我不知道如何实现它。提前致谢。
private static final String DATABASE_CREATE = "create table "
+ CustomerTable
+ "("
+ COLUMN_ID + " integer primary key autoincrement, "
+ COLUMN_CATEGORY + " text not null, "
+ COLUMN_SUMMARY + " text not null,"
+ COLUMN_DESCRIPTION
+ " text not null"
+ ");";
private static final String DATABASE_TABLE = "create table "
+ OrderTable
+ "("
+ COLUMN_ORDER_ID + " integer primary key autoincrement, "
+ COLUMN_FOOD+ text not null," , "
+ COLUMN_BOOK + " text not null, "
+ COLUMN_CAR + " text not null,"
+ ");";