SQL Create Table

SQL Create Table is used to create table in database.

For creating table, you need to define column name with data_types.

Syntax


CREATE TABLE table_name (
    column1 datatype,
    column2 datatype,
    column3 datatype,
. . . . . .
);



CREATE TABLE Example




CREATE TABLE Student(
RollNo int,
Name varchar(25),
Class varchar(20)
);


It will create table of table name 'Student':
RollNO Name Class

Back To Top