Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

SQL CREATE INDEX Constraint

-- create table
CREATE TABLE Colleges (
  college_id INT PRIMARY KEY,
  college_code VARCHAR(20) NOT NULL,
  college_name VARCHAR(50)
);

-- create index
CREATE INDEX college_index
ON Colleges(college_code);
 
PREVIOUS NEXT
Tagged: #SQL #CREATE #INDEX #Constraint
ADD COMMENT
Topic
Name
3+7 =