This topic contains 2 replies, has 2 voices, and was last updated by  rcwoodley 4 years, 8 months ago.

Relations between tables

  • Hi,

    Without any relations between the tables i can insert data to the database. If i created relation between one to many using Primary and Foreign key concepts getting an error as …..

    MySQL Error Message:
    Cannot add or update a child row: a foreign key constraint fails

    Please help me out to insert data to tables with the relations(one to many relations).

    Thanks,
    Nayana.S

    Is it possible to insert data to tables with one to many relations ??

    Can you provide more detail on the relationships between the tables, the nature of the keys, and what method you’re using for the insert?

You must be logged in to reply to this topic.