Logo

dev-resources.site

for different kinds of informations.

The difference between the (DDL AND DML) DATABASE

Published at
12/30/2024
Categories
database
sql
oracle
Author
omar_ab
Categories
3 categories in total
database
open
sql
open
oracle
open
Author
7 person written this
omar_ab
open
The difference between the (DDL AND DML) DATABASE

Image description

DDL(Data Definition Language) and DML(Data Manipulation Language) are two important subsets of SQL (Structured Query Language), each serving different purposes in database management.

  • DDL
  1. CREATE: To create new tables or databases.
CREATE TABLE Employees (
    ID INT PRIMARY KEY,
    Name VARCHAR(100),
    Position VARCHAR(50)
);
Enter fullscreen mode Exit fullscreen mode
  1. ALTER: To modify existing database structures (e.g., adding or dropping columns).
ALTER TABLE table_name
ADD column_name data_type;
Enter fullscreen mode Exit fullscreen mode
  1. DROP: To delete tables or databases.
DROP TABLE table_name;
Enter fullscreen mode Exit fullscreen mode

DML

  1. SELECT: To query and retrieve data.
SELECT column1, column2, ...
FROM table_name;
Enter fullscreen mode Exit fullscreen mode
  1. INSERT: To add new records to a table.
INSERT INTO table_name (column1, column2, ...)
VALUES (value1, value2, ...);
Enter fullscreen mode Exit fullscreen mode
  1. UPDATE: To modify existing records.
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
Enter fullscreen mode Exit fullscreen mode
  1. DELETE: To remove records from a table.
DELETE FROM table_name
WHERE condition;
Enter fullscreen mode Exit fullscreen mode
oracle Article's
30 articles in total
Favicon
SQL Performance Tuning: Best Practices for Faster Queries
Favicon
Oracle Cloud’s 25A Release Is Coming: Are You Prepared?
Favicon
Oracle Cloud Quarterly Updates: Key Highlights
Favicon
Why Should Companies Consider Oracle Cloud Integration
Favicon
Identifying and Resolving Blocking Sessions in Oracle Database
Favicon
5 Things to Know Regarding Oracle 24B Release
Favicon
Things To Consider for Oracle Redwood Migration
Favicon
Key Strategies for Workday Oracle Integration
Favicon
A Top HR Service Company Replaces its System Seamlessly with BladePipe
Favicon
How to Simplify Oracle Databases with a GUI Tool
Favicon
Mastering SQL Joins - Inner, Outer, Cross, and Self-Joins with Examples
Favicon
Oracle 24D Release Notes: Key Insights and Upcoming Features
Favicon
The Oracle 24D Release: Reasons for the Growing Excitement
Favicon
Understanding Oracle Quarterly Updates and Their Impact
Favicon
5 Benefits of Oracle Cloud Quarterly Updates
Favicon
Reasons Behind the Increasing Popularity of Oracle Cloud Quarterly Updates
Favicon
Top 5 Benefits of Oracle Cloud Integration Testing
Favicon
Things To Know About Oracle Redwood Testing
Favicon
Why Urgent Action is Needed to Ensure Redwood Readiness on Oracle HCM
Favicon
The difference between the (DDL AND DML) DATABASE
Favicon
Exploring Oracle 24D: A Deep Dive into Release Notes
Favicon
Oracle 24D: The Autonomous Database Revolution
Favicon
Mistakes to Avoid While Going for Oracle Quarterly Updates
Favicon
5 Mistakes to Avoid While Going for Oracle WMS Testing
Favicon
Things to be Considered Regarding Oracle Cloud Integration
Favicon
Oracle Redwood Migration Challenges: Your Complete Guide
Favicon
5 Incredible Benefits of Oracle OTM Testing
Favicon
Oracle cloud EC2- Website not opening issue
Favicon
Oracle Cloud Integration Testing: Key Insights and Process
Favicon
Oracle Redwood Migration: A Comprehensive Guide

Featured ones: