Drill 22: Why this way — Setup and tools
Explain why the example is written this way rather than another way.
What you will be able to do
- Explain why the example is written this way rather than another way.
Practice task
Explain why the example is written this way rather than another way.
CREATE DATABASE edubyte CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
USE edubyte;
CREATE TABLE lessons (
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
course_slug VARCHAR(80) NOT NULL,
title VARCHAR(160) NOT NULL,
minutes SMALLINT UNSIGNED NOT NULL DEFAULT 10,
INDEX lessons_course_idx (course_slug)
);
INSERT INTO lessons (course_slug, title, minutes) VALUES ('css', 'Grid', 18);Your turn
EasyWrite your answer
Explain why the example is written this way rather than another way.
TEXT · starter
Your answer…Study tools
Make it yours.
Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.
Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign inFinished reading?
Lock in what you just learned.
0%
Mark this lesson complete to save your place and move one step closer to the certificate.