There are 5 types of SQL Commands:
- Data Defined Language (DDL)
- Data Manipulation Language (DML)
- Data Control Language (DCL)
- Transaction Control Language (TCL)
- Data Query Language (DQL)
Data Defined Language (DDL)
There are 5 types of statements in Data Defined Language (DDL) as follows:
CREATE statement
We use this statement to create a database schema or a table into our database.
CREATE DATABASE databasename;
To create table, below is the syntax.
CREATE TABLE table_name (
column1 datatype,
column2 datatype,
column3 datatype,
....
);
Leave a Reply