...

Database Managment - Sql

Back to Course

Lesson Description


Lession - #1286 SQL Create Table


Used to create table in specific database

Syntax for Create table




CREATE TABLE table_name(
   column1 datatype,
   column2 datatype,
   column3 datatype,
   .....
   columnN datatype,
   PRIMARY KEY( one or more columns >
>
;


Note:

Database name should be present in database.

Example 1:



Online compiler