Latest news
Home » SQL » How to create a table in SQL

How to create a table in SQL

Command or syntax for crating a table in SQL

SQL> CREATE TABLE <tablename name>(fieldname datatype(size) PRIMARY KEY);
Example:CREATE TABLE STUDENT(stu_number number(2) PRIMARY KEY,stu_name varchar(20));

Leave a Reply

x

Check Also

How can be list the installed SQL Server instances

Press window+R windows run window will open and then type cmd Command prompt will open ...