How Do I Comment out a Sql File
Begin the Comment with a Slash and an Asterisk (/*). Proceed with the Text of the Comment. This Text Can Span Multiple Lines. … Begin the Comment with — (Two...
Begin the comment with a slash and an asterisk (/*). Proceed with the text of the comment. This text can span multiple lines. … Begin the comment with — (two hyphens). Proceed with the text of the comment. This text cannot extend to a new line.
Can you comment out code in SQL?
You can comment out or uncomment a single line of code in an SQL statement, multiple adjacent lines of code, a complete SQL statement, or multiple adjacent SQL statements. The syntax for a comment in a line of SQL code is a double hyphen ( — ) at the beginning of the line.
How do you comment multiple lines in SQL?
Multi-line comments start with /* and end with */ . Any text between /* and */ will be ignored.