foreign key constraint

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fangio

    #1

    foreign key constraint

    Hello,

    we're using InnoDB. After defining a table with "ON UPDATE CASCADE"
    and _without_ "ON DELETE" constraint, we deleted an entry in the
    parent table. The referenced tuple in the child table was deleted as
    well.

    Can anyone tell us why and if this behaviour is sql standard?

    Thx in advance!

    -fangio
  • Heikki Tuuri

    #2
    Re: foreign key constraint

    Fangio,

    "fangio" <fangiom@gmx.ne t> kirjoitti
    viestissä:17a39 294.0411230047. 1a361f61@postin g.google.com...[color=blue]
    > Hello,
    >
    > we're using InnoDB. After defining a table with "ON UPDATE CASCADE"
    > and _without_ "ON DELETE" constraint, we deleted an entry in the
    > parent table. The referenced tuple in the child table was deleted as
    > well.[/color]

    please show the EXACT sequence of SQL statements to repeat this. Table
    definitions and all.
    [color=blue]
    > Can anyone tell us why and if this behaviour is sql standard?
    >
    > Thx in advance!
    >
    > -fangio[/color]

    Best regards,

    Heikki Tuuri
    Innobase Oy
    Foreign keys, transactions, and row level locking for MySQL
    InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up MyISAM
    tables
    http://www.innodb.com/order.php

    Order MySQL technical support from https://order.mysql.com/


    Comment

    Working...