Describe Table
DESCRIBE students; or DESC students; prints columns, types, NULL, key, default. Same idea: SHOW COLUMNS FROM students; or SHOW CREATE TABLE students; (full CREATE text including keys).
Use this when you forgot whether marks is INT or VARCHAR. Don’t guess types in an interview — DESCRIBE.
Trap — DESCRIBE on a view still works, but you won’t see indexes the same way as a base table.
On the example next to this theory: Describe Table: create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.
Exam tip
DESC students; and SHOW CREATE TABLE students;