Skip to content
Justice Tech School

Comments and Formatting

-- starts a line comment and /* */ a block. Uppercase keywords and one clause per line help reading.

Example
-- list good students
SELECT name /* only names */
FROM students
WHERE score > 80;

Result

name
Ada
Amina
Zainab

Exercise

Line comment.

 note

Quiz Test

Which starts a SQL line comment?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.