SQL COMMENTS - The Coding Shala
Home >> Learn SQL >> SQL Comments
SQL Comments are added for the purpose of making the source code more readable for the programmers. Comments are not executed, they are just for explanation. In SQL, there is two type of comments - Single line comments and multi-line comments.
Single line comments start with '--' so any text between -- and the end of the line will not be executed. The following example uses a single line comment -
Multi-line comments start with '/*' and end with '*/' so any text between /* and */ will be skipped. The following example uses multi-line comments -
Other Posts You May Like