Mysql Foreign Keys


  1. The property of InnoDB that enforces foreign key relationships stay intact is called _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The storage engine responsible for providing foreign key support is InnoDB. It enforces that the rules guarantee the foreign key relationship stays intact with no mismatching of data.


  1. Which storage engine in MySQL provides foreign key support?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    In MySQL, there are a list of storage engines to choose from. Each storage engine provides its own set of facilities. The foreign key facilities are provided by the InnoDB storage engine.



  1. Deletion of an employee from table also deletes that employee from another table. This kind of delete is called ____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    In MySQL, a cascaded delete and update is possible where records can be deleted from multiple tables. These tables are related with the help of foreign keys. Foreign keys make table updates flexible.


  1. Foreign keys cannot handle deletes and updates.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    A foreign key is the one which declares that an index in one table is related to that in another and place constraints. It is useful for handling deletes and updates along with row entries.



  1. Which key declares that an index in one table is related to that in another?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    In MySQL, a foreign key is the one which facilitates index relations across tables. It declares that an index in one table is related to that in another and place constraints.