How to create a table in SQL?

Long Answer
Views 408

Answer:

SQL provides an organized way for table creation:

Syntax

Create table TableName (columnName1 datatype, columnName2 datatype )   

The following is an example of creating a simple table.

 create table Info   
(   
   Name varchar(20),   
   BirthDate date,   
   Phone nvarchar(12),   
   City varchar(20)   
)    

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of SQL, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.