← MySQL stored procedures: all 5 parts
Databases ยท Free practice
MySQL Stored Procedures, Part 1: Creating and Populating a Database
Watch the lesson, based on lessons by Dr. J. Ubaldo Quevedo, then practice as many times as you want: every New button gives you new data to work with.
1. Watch
- SET columns accept only the listed values; NOT NULL columns are required; DEFAULT fills a missing value.
- CHECK rejects rows that break a condition, like age > 17 and age < 70.
- FOREIGN KEY: the referenced row must already exist. PRIMARY KEY and UNIQUE: no duplicates.
2. Try it yourself
Practice as many times as you want. Every New button builds new tables, names and values. It's free, and you don't need an account or a MySQL installation.
Correct so far: 0