Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

SQL Primary Key Syntax

CREATE TABLE Colleges (
  college_id INT,
  college_code VARCHAR(20) NOT NULL,
  college_name VARCHAR(50),
  CONSTRAINT CollegePK PRIMARY KEY (college_id)
);
 
PREVIOUS NEXT
Tagged: #SQL #Primary #Key #Syntax
ADD COMMENT
Topic
Name
7+3 =