Is FOREIGN KEY ... ON DELETE CASCADE operational in mysql?

If so, I am not observing such. Here is how I am using it:


CREATE TABLE scheduled_task_list (
   schedule_id                  CHAR(28) NOT NULL,

 /* keys */
   PRIMARY KEY             (schedule_id)
);

CREATE TABLE scheduled_task_instances (
   task_instance_id        CHAR(28) NOT NULL,

   schedule_id               CHAR(28) NOT NULL,
   

 /* keys */
   PRIMARY KEY             (task_instance_id),

 /* constraints */
   FOREIGN KEY             (schedule_id)
      REFERENCES           scheduled_task_list (schedule_id)
      ON DELETE            CASCADE
   );

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to