Question: ANDROID STUDIO (JAVA) SQLITE QUESTION: HOW TO INSERT VALUES INTO FOREIGN KEY REFERENCED TO PRIMARY KEY IN DATABASE? Assume I have two tables: Registration and
ANDROID STUDIO (JAVA) SQLITE QUESTION: HOW TO INSERT VALUES INTO FOREIGN KEY REFERENCED TO PRIMARY KEY IN DATABASE?
Assume I have two tables: Registration and CardHolder. Table Columns: C_REGISTRATION_pID (foreign key) references REGISTRATION_pID (primary key)
What I have done so far: Created those two tables with attributes. Inserted values into them. However, I don't know how to generate foreign key values FROM the primary keys (autoincrement).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
