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

  • Home
  • SEARCH
  • 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 1020555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:10:51+00:00 2026-05-16T11:10:51+00:00

hi all i am getting a problem while i attenpting to delete a row

  • 0

hi all i am getting a problem while i attenpting to delete a row from parent table, actuall i have created 2 table custmer and account.i make cutomer id(primary key) in customer and customer id (forigen key ) in account.after created it i have filled data inside both table.
at this point while i am trying to delete a row from first table (customer ) then it give failure message is that it can’t be deleted bcs it is refrenced as forigen key some thing like that…………but while we delete row from account table then it’s delete sucess fully.
…….i want to function like that if i delete a row from parent table(customer) then its in child table that row which has same customer id (account table) is delete automatically…………

  • 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-16T11:10:52+00:00Added an answer on May 16, 2026 at 11:10 am

    watch out on the cascade deletes! a user will accidentally click on the application’s little trash can icon and delete the customer, and then all the cascades will remove every trace of that customer, orders, invoices, payments, history, etc from your database. After the user call you to tell you about their little mistake, you’ll have to restore a backup and try to pull the info back into the database.

    I would look into “soft deletes” where you only change the customer’s status from “active” to “inactive”. the rows is not deleted, preserving all foreign key data. This allows reports to run on the data, because it still exists, as well as easy an “undo”.

    Soft deletes are not the end all only way to go, it is a business decision on how to handle this, purge the data or mark it inactive. That is only something you can decide, because I don’t know your application or business logic. I just thought that I would offer it as an alternative.

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

Sidebar

Ask A Question

Stats

  • Questions 503k
  • Answers 503k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer As it was said it is warning by default. But… May 16, 2026 at 2:57 pm
  • Editorial Team
    Editorial Team added an answer The 'jump' happens because fadeOut() function in the end sets… May 16, 2026 at 2:57 pm
  • Editorial Team
    Editorial Team added an answer If you invoke run-scheme with a prefix argument, it will… May 16, 2026 at 2:57 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Hi friends hope all r doing well. I have a problem while reading xml
i'm running into a strange problem in Microsoft SQL Server 2008. I have a
I have gotten a great deal of help from KandadaBoggu on my last question
I'm working on displaying a page of classifieds in table rows. The problem I'm
I have a SQL Table Roles in DB. I want to find out if
I am new to Makefiles and g++ and i am struck with a problem
This is my SimpleDBAdapter Class that encapsulates all the complexities of accessing the database
Posted a question about an error I was getting the over day about Memory
I have an HTML 5 web page using CSS 3 and have tested it
I've constructed a database in MySQL and I am attempting to map it out

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.