PRIMARY KEY column : Create Table « Table « SQL Server / T-SQL Tutorial






4> CREATE TABLE employee(
5>        emp_no INTEGER NOT NULL CONSTRAINT prim_empl PRIMARY KEY,
6>        emp_fname CHAR(20) NOT NULL,
7>        emp_lname CHAR(20) NOT NULL,
8>        dept_no CHAR(4) NULL)
9> GO
1>
2> drop table employee;
3> GO
1>








3.1.Create Table
3.1.1.The basic syntax of the CREATE TABLE statement
3.1.2.PRIMARY KEY column
3.1.3.Table Creation Script for Parent and Child with FOREIGN KEY Constraint and INSTEAD OF Trigger
3.1.4.Computational column
3.1.5.CLUSTERED column
3.1.6.A statement that creates a table with column attributes