SQL Tutorial

SQL Loops

Loops

Loops let you repeat blocks of code efficiently.

-- loops vary by dialect
SELECT id, title FROM courses LIMIT 5;
Try it Yourself
Run this SQL example in your local environment or course sandbox.