Comments Type in SQL
In SQL, There are two types of SQL Comments used, the first one single-line and the second one multi-line comment. Even, one comment type is also used which is called SQL Comment Indicator.
- Single Line Comments
- Multi-Line Comments
- SQL Comment Indicator
Single Line Comment
Two dashed used at the start of the line, means for single line comment; an example is mentioned below for more understanding.
Single Line Comment Example
--Single-Line Comments
Multi_line Comment
In multi-line comments, Write comments between start /* and end */; an example is mentioned below for more understanding.
Multi-line Comment Example
/* write first line code here
second line comment here */