SQL CREATE TABLE Statement

Article SQL

Introduction

In this article you will learn how to create table using SQL.

syntax

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

SQL CREATE TABLE Example

CREATE TABLE Employees(
    EmployeeID int,
    LastName varchar(255),
    FirstName varchar(255),
    Address varchar(255),
    City varchar(255)
);

Output

EmployeeIDLastNameFirstNameAddressCity
Ajay Nagar
Latest posts by Ajay Nagar (see all)