delete rows

Posted on 2011-02-21
Medium Priority
Last Modified: 2012-05-11
What is the syntax delete from tablename where ... cascade so I can delete the child records also.
Question by:msimons4
  • 2
LVL 78

Accepted Solution

slightwv (䄆 Netminder) earned 2000 total points
ID: 34947742
There isn't a delete cascade.  If the constraints were set up with delete cascade the children are deleted automatically.

If not, delete the children first.

Author Comment

ID: 34947762
When you truncate a table does it automatically delete the child records or are the child's table FK consstraints disabled?
LVL 78

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34947787
Answered in your new question.

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This article will show a step by step guide on how to mask column values in Oracle 12c using DBMS_REDACT full redaction option. This option is available on licensed Oracle Enterprise edition as part of Oracle's Advanced Security.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question