Set: SQL: FOREIGN KEY

Familiarize

Learn

Test

Play Scatter

Play Space Race

Combine with other sets Login to add to Favorites
Print: Term List | Flashcards Editing not allowed
Export Deleting not allowed

Share these flash cards

With group: None
HTML link to set: Tiny link:
Share on Facebook Share on MySpace

All 5 terms

TermDefinition
ALTER TABLE table_name ADD FOREIGN KEY (column_name) REFERENCES table_name (column_name)to create a FOREIGN KEY constraint on a column when the table is already created
ALTER TABLE table_name ADD CONSTRAINT constraint_name FOREIGN KEY (column_name) REFERENCES table_name (column_name)to allow naming of a FOREIGN KEY constraint, and for defining a FOREIGN KEY constraint on multiple column
ALTER TABLE table_name DROP CONSTRAINT constraint_nameto drop a FOREIGN KEY constraint
CREATE TABLE table_name (column_name1, NOT NULL, column_name2, PRIMARY KEY (column_name),FOREIGN KEY REFERENCES table (column_name))to create a table with a FOREIGN KEY constraint on a column
FOREIGN KEYpoints to a PRIMARY KEY in another table

Set Information

Terms 5
Creator jtwilliams00
Created March 30, 2009
Groups None
Subject SQL
Access Anyone
Edit Creator Only
Get rid of ads on Quizlet
Pop out

Discuss

No Messages
Last Message: never

You must be logged in to discuss this set.