Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6319633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:50:22+00:00 2026-05-24T15:50:22+00:00

This is a question same as ON DELETE CASCADE not working in MySQL question

  • 0

This is a question same as ON DELETE CASCADE not working in MySQL question where the My-ISAM engine is not doing its ON DELETE CASCADE part. But the problem is i have to use MyISAM table type itself and not InnoDB

How can i ensure that i can simulate the ON DELETE CASCADE when ever a row gets deleted in my parent table, so that its updated in many other tables it is referencing it.? Can i write some kind of trigger?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T15:50:23+00:00Added an answer on May 24, 2026 at 3:50 pm

    From the fine manual:

    For other storage engines, MySQL Server parses and ignores foreign key specifications.

    So if you need ON DELETE CASCADE behavior and MyISAM tables at the same time then you’ll have to do the CASCADE part by hand with a DELETE trigger or something similar outside the database. Adding a trigger like this should work:

    create trigger fake_cascade_delete after delete on table_name
    for each row begin
        delete from other_table
        where referencing_column = OLD.id;
    end;
    

    That’s just off the top of my head and the table and column names are, of course, just for demonstration purposes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[This question is related to but not the same as this one .] My
[This question is related to but not the same as this one .] If
This question is related to (but perhaps not quite the same as): Does Django
I have the same problem as described in this question , but there it's
I have an ObjectDataSource (but perhaps this question is the same for all kinds
This is the same question as this but I'm looking for a classic ASP
The same as this question but for java Update Based on the comments and
This question may have been asked already - but unfortunately, I could not find
I'm not sure exactly how to describe this question, but here goes. I've got
EDIT-Moderator, feel free to delete this question. The problem lay in my background image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.