How to create a table in SQL?

SQL >   SQL Table >   Create table  

Long Question

522


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)   
)    


This Particular section is dedicated to Question & Answer only. If you want learn more about SQL. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.