Search
 
SCRIPT & CODE EXAMPLE
 

SQL

cascade syntax in sql

DELETE Rules:
1. ON DELETE NO ACTION
2. ON DELETE CASCADE
3. ON DELETE SET NULL
4. ON DELETE SET DEFAULT

UPDATE Rules:
1. ON UPDATE NO ACTION
2. ON UPDATE CASCADE
3. ON UPDATE SET NULL
4. ON UPDATE SET DEFAULT
Comment

cascade syntax in sql

<COLUMN> <DATATYPE> <CONSTRAINT NAME> REFERENCES <MASTER TABLE
NAME> (<PRIMARY KEY COLUMN>)
ON DELETE {NO ACTION/CASCADE/SET NULL/ DEFAULT}
ON UPDATE {NO ACTION / CASCADE /SET NULL/ DEFAULT}
Comment

PREVIOUS NEXT
Code Example
Sql :: rename temp table column name in sql server 
Sql :: mssql unique key accept nulls 
Sql :: convert sql server guid to varbinary 
Sql :: sql insert into select statement 
Sql :: how to verify sequence result in oracle SQL 
Sql :: create table if not exists 
Sql :: illuminate database queryexception could not find driver (sql select * from 
Sql :: json_modify sql server 
Sql :: oracle convert hours to minutes 
Sql :: mysql shell 
Sql :: sqlalchemy default value for column 
Sql :: order by in codeigniter query builder 
Sql :: mysql select smaller of two values 
Sql :: cross join sl 
Sql :: Order of execution SQL or MySql query Or Logical order of operations: 
Sql :: how to fetch data from database without last column 
Sql :: sql: extract day text from datetime value 
Sql :: MySQL error code 2068 
Sql :: min max in sql 
Sql :: how to use join with 3 tables in sql server 
Sql :: find the names of sailors who have reserved at least one boat 
Sql :: if exist column in table drop sql query mysql 
Sql :: what is key in sql 
Sql :: sql stored procedure output parameters 
Sql :: SQL MIN() Function 
Sql :: merge in sql 
Sql :: SQL Greater Than Operator 
Sql :: postgresql cast string to int 
Sql :: on delete set default 
Sql :: how to check rollback status in oracle 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =