Users Pricing

blog

Home Blogs Create Table Statement in SQL – MindStick

Create Table Statement in SQL

Sumit Kesarwani 3599 18 May 2013 Updated 18 Sep 2014

In this blog, I’m trying to explain the create table statement in sql.

You need tables in database to store data. Create Table statement is used to create tables in database.

Syntax:

CREATE TABLE tablename (column name datatype(size),column name datatype(size));

where

·         tablename - name of the table

·         column name - name of the column

·         datatype - datatype of the column

·         size – size of datatype

Example
CREATE TABLE student(student_id int,student_name varchar(30),student_address varchar(30),student_mobile int,
student_branch varchar(10),student_date_of_birth date);

This statement creates the table name student with column student_id, student_name, student_address, student_mobile, student_branch, student_date_of_birth

 


Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md