Preamble
After creating a foreign key, you may need to drop the foreign key from the table. You can do this with the ALTER TABLE operator in Oracle/PLSQL.
Syntax to drop a foreign key in Oracle / PLSQL
ALTER TABLE table_name
DROP CONSTRAINT constraint_name;
Example
If you created a foreign key like this:
CREATE TABLE supplier
( supplier_id numeric(10) not null,
supplier_name varchar2(50) not null,
contact_name varchar2(50),
CONSTRAINT supplier_pk PRIMARY KEY (supplier_id)
);
CREATE TABLE products
( product_id numeric(10) not null,
supplier_id numeric(10) not null,
CONSTRAINT fk_supplier
FOREIGN KEY (supplier_id)
REFERENCES supplier(supplier_id)
);
In this example we created the primary key table of the supplier called supplier_pk.
It consists of only one supplier_id field. Then we created a foreign key named fk_supplier in the products table that refers to the supplier table based on the supplier_id field.
If we need to drop the foreign key named fk_supplier, we need to execute the following command:
ALTER TABLE products
DROP CONSTRAINT fk_supplier;
SQL tutorials: SQL Foreign Key Constraint
About Enteros
Enteros offers a patented database performance management SaaS platform. It proactively identifies root causes of complex business-impacting database scalability and performance issues across a growing number of clouds, RDBMS, NoSQL, and machine learning database platforms.
The views expressed on this blog are those of the author and do not necessarily reflect the opinions of Enteros Inc. This blog may contain links to the content of third-party sites. By providing such links, Enteros Inc. does not adopt, guarantee, approve, or endorse the information, views, or products available on such sites.
Are you interested in writing for Enteros’ Blog? Please send us a pitch!
RELATED POSTS
How to Optimize Technology Sector Growth with Enteros Database Management Platform, Cost Attribution, and Database Software
- 21 April 2026
- Database Performance Management
Introduction The technology sector is evolving at an unprecedented pace, driven by cloud computing, artificial intelligence, SaaS platforms, and real-time digital services. Organizations are scaling rapidly to meet global demand, but with this growth comes increasing complexity in managing infrastructure, controlling costs, and maintaining high-performance systems. Technology companies today must balance innovation with efficiency. While … Continue reading “How to Optimize Technology Sector Growth with Enteros Database Management Platform, Cost Attribution, and Database Software”
How to Optimize Retail Sector Growth with Enteros Database Management Platform, AIOps, RevOps Efficiency, and Cost Estimation
The retail sector is evolving rapidly, driven by digital transformation, omnichannel experiences, and data-driven decision-making. Retailers today must deliver seamless customer experiences across online platforms, mobile apps, and physical stores—all while managing complex IT systems and rising operational costs. However, this growth comes with a fundamental challenge:how to scale efficiently while maintaining performance, controlling costs, … Continue reading “How to Optimize Retail Sector Growth with Enteros Database Management Platform, AIOps, RevOps Efficiency, and Cost Estimation”
Improving E-commerce Platform Performance with Database Analytics
The global e-commerce industry has experienced tremendous growth in recent years, driven by increasing digital adoption, mobile shopping, and evolving consumer expectations. Modern e-commerce platforms must process thousands—or even millions—of transactions daily while ensuring seamless user experiences. Behind every successful online store lies a powerful database infrastructure that manages product catalogs, customer profiles, payment transactions, … Continue reading “Improving E-commerce Platform Performance with Database Analytics”
Improving Banking Performance with Advanced Database Monitoring Solutions
The banking industry is rapidly evolving as financial institutions embrace digital transformation, real-time transactions, and data-driven services. Modern banks must process millions of transactions daily while maintaining security, regulatory compliance, and seamless customer experiences. In this environment, database performance plays a critical role in ensuring operational efficiency and reliability. Banks rely on large, complex database … Continue reading “Improving Banking Performance with Advanced Database Monitoring Solutions”