February 2025
Beginner
304 pages
8h 8m
English
We talked about two important constraints in chapter 18: PRIMARY KEY and FOREIGN KEY constraints. This chapter looks at a few more constraints that help us ensure the integrity of the data in our tables.
We’ll also discuss indexes, which are table-related objects that help with the performance of our queries. Just as indexes in books like this one can help you quickly find the subject you’re looking for, indexes in a database can reduce the time it takes queries to find specific data.
I hope that you’ve enjoyed creating tables and associated constraints because you’re about to create more.
By completing the examples in chapter 18, you learned that you can create constraints in two ways: by ...