Answers for "cascade constraints drop table"

SQL
1

DROP TABLes regardless of constraints

SET FOREIGN_KEY_CHECKS = 0;

DROP TABLE <table_name>

-- if you want to later add or modify foreign keys
SET FOREIGN_KEY_CHECKS = 1;
Posted by: Guest on November-29-2021
0

drop table with constraints

1. 'First Drop contrstraints like this'
ALTER TABLE table_name
DROP CONSTRAINT constraint_name;
2. 'Then drop table'
DROP TABLE table_name;
Posted by: Guest on February-19-2021

Code answers related to "cascade constraints drop table"

Code answers related to "SQL"

Browse Popular Code Answers by Language