Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to use 3 fields as primary key in sql tables?

CREATE TABLE track(
  album CHAR(10),
  disk INTEGER,
  posn INTEGER,
  song VARCHAR(255),
  PRIMARY KEY (album, disk, posn)
)
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #fields #primary #key #sql
ADD COMMENT
Topic
Name
1+7 =