Which notation denotes a multi-line comment?

Study for the SQL Basics Test. Improve your knowledge with multiple choice questions and detailed explanations. Prepare effectively to master SQL concepts!

Multiple Choice

Which notation denotes a multi-line comment?

Explanation:
A multi-line comment is marked by opening with /* and closing with */. Everything between these delimiters is ignored by the compiler, so you can spread the comment across several lines. This is different from // or --, which are single-line comments that end at the end of the line. The exact form is /* comment */, which is why that notation is used to denote a comment block that can span multiple lines.

A multi-line comment is marked by opening with /* and closing with /. Everything between these delimiters is ignored by the compiler, so you can spread the comment across several lines. This is different from // or --, which are single-line comments that end at the end of the line. The exact form is / comment */, which is why that notation is used to denote a comment block that can span multiple lines.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy