Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql remove foreign key constraint

ALTER TABLE jobs DROP FOREIGN KEY constraint_name 
Comment

drop foreign key mysql

ALTER TABLE table_name DROP FOREIGN KEY constraint_name
Comment

How to drop a foreign key constraint in mysql ?

ALTER TABLE table_name 
DROP FOREIGN KEY constraint_name;
Code language: SQL (Structured Query Language) (sql)
Comment

mysql delete table with foreign key

SET FOREIGN_KEY_CHECKS = 0;
drop table if exists customers;
drop table if exists orders;
drop table if exists order_details;
SET FOREIGN_KEY_CHECKS = 1;
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle list grants on procedure 
Sql :: restore database postgresql 
Sql :: varchar vs nvarchar sql 
Sql :: mysql two column combination unique 
Sql :: how to change the auto increment in existing table mysql 
Sql :: codigo crear tablas sql server 
Sql :: do postgresql 
Sql :: How can I tell how many Cores SQL Server is actually using? 
Sql :: sort by sql 
Sql :: sql groub by count 
Sql :: index column size too large. the maximum column size is 767 bytes. mysql 
Sql :: mysql kill 
Sql :: mysql delete duplicates 
Sql :: create user mariadb 
Sql :: wherein sql 
Sql :: average sql 
Sql :: dual in db2 
Sql :: sql between 
Sql :: date in oracle 
Sql :: enter mysql command line 
Sql :: rename a column in sql server 
Sql :: select top 3 sql 
Sql :: get yesterday date ISO in psql 
Sql :: update trigger 
Sql :: mysql create table from select statement 
Sql :: postgres dump sql insert 
Sql :: sql delete column 
Sql :: how to delete all duplicate items in mysql 
Sql :: default password for mysql_secure_installation in mac 
Sql :: postgresql must appear in the GROUP BY clause or be used in an aggregate function 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =