What are SQL comments?

0

Comments are explanations or annotations in SQL queries that are readable by programmers. It's used to make SQL statements easier to understand for humans. During the parsing of SQL code, it will be ignored. Comments can be written on a single line or across several lines.
Single Line Comments: It starts with two consecutive hyphens (--).
Multi-line Comments: It starts with /* and ends with */.

Sql
asked Apr 14, 2023 at 21:47
Sign in to add a comment

0 Answers

0
📝 No answers yet!

Be the first to answer this interview question.

Your Answer

Sign in to post your answer and help the community.