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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!