Oracle 12C TRUNCATE TABLE CASCADE
The truncate table cascade statement is provided in Oracle 12c to delete the association when the TABLE has a primary foreign key relationship and is cleared. The following is a demonstration.
1. Prepare the test tableSQL> CREATE TABLE t1 (2 id NUMBER,3 description VARCHAR2 (50 ),4 CONSTRAINT t1_pk primary key (id)) 5;
Table created.
SQL> CREATE TABLE t2 (2 id NUMBER,3 t1_i
Comparison of cascading and weight in css, css cascade weight
If the same tag is selected by multiple selectors, and each selector sets the same style, who will listen to this style when loading it in the browser?
For the same style set by different selectors, only one style will be selected for loading and will not be superimposed.
To solve the problem of listening, introduce the concept of cascade.
Label:In previous versions, the parent table could not be truncate directly when there was a foreign key constraint. In 12C, a cascade operation attribute was added to the truncate operation. If you create a FOREIGN key constraint, use "on Delete Casacde". Test script: Sql>drop table child; SQL>drop table parent; SQL>CREATE TABLE parent (ID number primary key); SQL>CREATE TABLE Child (CID number primary key,pid number); SQL>ALTER TABLE child add cons
thinkphp Project CMS Content Management System Development Video tutorial "20 Lessons" (3.02GB), THINKPHP3.02GB
thinkphp Background Introduction:thinkphp is a free, open-source, fast, simple object-oriented, lightweight PHP development framework that follows the Apache2 Open source protocol, and is created for Agile web application development and simplifying enterprise-level application development. With many excellent features and features, with
First, I declare that the jquery plug-ins of the two no-matter cascade drop-down boxes are completely original. After strict tests, the correct use of the plug-ins does not show bug flexibility. I have considered many aspects, several important configurations are provided to facilitate use in various environments. You are welcome to use the shoes. The source code is fully open. The reason for developing this plug-in is that some time ago, maintaining
The CASCADE operation of Oracle is to process the data in the primary table. There are three situations: SETNULL, CASCADE, and NOACTION.
Oracle CASCADE operations are designed to process the data in the primary table. There are three situations: set null, CASCADE, and no action.
The
Relationship between several related tables:Announcement (Announcement)1> NAnnouncerole (role corresponding to announcement)N Role)
Problem: When hibernate performs cascade add and delete operations, announcement and announcerole can both be normally reflected in the database. However, it is found that announcement data is updated normally during update, however, the announcerole data is retained. To solve this problem, refer to the following configu
-- Instance Description: Two Methods for SQL Server multi-Table cascade deletion
-- 1. Trigger-based cascade DeletionIf object_id ('tablec') is not null drop table tablecGoIf object_id ('tableb') is not null drop table tablebGoIf object_id ('tablea') is not null drop table tableaGoCreate Table tablea (Aid varchar (10) primary key, aname varchar (20 ))Insert tablea select 'a1', 'Company 1'GoCreate Table tab
This section describes how to use the default oracle creation method when creating foreign key constraints. When you delete referenced data, the data cannot be deleted, this gives us more flexible options in oracle9i, however, we use the on delete cascade and on delete set null keywords to determine whether to delete the data referenced in the data when deleting the referenced data, or leave the corresponding values of the data that references this da
In terms of flexibility, we have considered many aspects and provided several important configurations for ease of use in various environments. You are welcome to use shoes and the source code is fully open. The reason for developing this plug-in is that some time ago, maintaining a level-4 cascade drop-down box was frustrated by the 200 lines of code and complicated structures and bugs in the box. (The reason is that this
Based on semi-synchronous, ssl mysql cascade replication today nothing to do a mysql cascade replication experiment topology is as follows: Operating System: centos6.4 (64bit) Database: mysql-5.5.35 master server: node1.example
Based on semi-synchronous, ssl mysql cascade replication today nothing to do a mysql cascade
Haar feature-based Cascade Classifier for Object Detection
First, a classifier (namely a cascade of boosted classifiers working with haar-like features) are trained with a f EW hundred sample views of a particular object (i.e., a face or a car), called positive examples, that is scaled to the S Ame size (say, 20x20), and negative examples-arbitrary images of the same size. Training with positive an
Problem Description:
A very common problem arises when you change a bug to an organization type management module, as shown in the following figure:
When the user is in the delete operation, if the tree structure of the middle node is deleted, the entire page of data disappears, such as the name of the image in the "College" node is deleted, then the entire tree structure of the data are gone, this is a very obvious bug.
Problem Analysis:
For such a obvious bug, what causes. At the beginning o
1. Cascade Delete:-Cascade Delete: Layoffs, company closures--Cascade Delete (Cascade), set to null (SETNULL), laissez-faire (no action) --Cascade: (Take one-to-many as an example) if you delete many of the parties, one party will not be affected, but if you delete a party,
There are three of tables:CompanyAddressContactEstablish foreign key in address and contact, foreign key ID is company's ID,Then you cannot delete company arbitrarily. But if the foreign key constraints in the Cascade Delete selected, it will be associated with the address and contact with the delete.SQL Server Cascade Delete: Automatically delete secondary table (foreign KEY constraint) content when deleti
Label:Background:These two days to review the next design patterns and data structure, and fill the basic knowledge, and then insomnia all night, I do not know why the idea of cascading and pseudo-deletion of data this problem. Because cascade deletion is almost everyone will encounter problems, but the scheme is limited but not good, so welcome everyone to gather think Wen Yi, the following content welcome to discuss together.Cascading deletions: Mod
Tags: using AR for data SP problem C on RUse on DELETE cascade and on delete set NULL in Oracle to establish foreign keysThe surface we describe the creation of a foreign key constraint when using the Oracle default creation method, when deleting the referenced data will not be deleted, which gives us more flexibility in oracle9i, we use the ON DELETE cascade and the on delete set The NULL keyword determine
MySQL supports foreign key storage engine only InnoDB, when creating foreign keys, requires the parent table must have a corresponding index, the child table when creating foreign keys will also automatically create the corresponding index. When you create an index, you can specify the corresponding actions on the child table when the parent table is deleted, updated, including restrict, noaction, SET null, and Cascade. where restrict and no action ar
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.