Multi-Line Comments
Use /* */ for longer comments:
sql
1/*
2 This query finds all students
3 enrolled in Python course
4 with marks above 80
5*/
6SELECT * FROM students
7WHERE course = 'Python'
8AND marks > 80;Inline Multi-Line
sql
1SELECT name, /* student name */ marks /* score */
2FROM students;When to Use
- Complex query explanations
- Temporarily disabling code
- Documentation blocks
