13.07.2015 Views

David M. Kroenke and David J. Auer Database Processing: SQL for ...

David M. Kroenke and David J. Auer Database Processing: SQL for ...

David M. Kroenke and David J. Auer Database Processing: SQL for ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Constraints• Constraints can be defined within the CREATETABLE statement, or they can be added to thetable after it is created using the ALTER tablestatement.• Five types of constraints:– PRIMARY KEY may not have null values– UNIQUE may have null values– NULL/NOT NULL– FOREIGN KEY– CHECKKROENKE AND AUER - DATABASE PROCESSING, 11th Edition© 2010 Pearson Prentice Hall7-14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!