how to put comments in .sql file code example

Example 1: comment in sql

/* Comment */

Example 2: sql comments

Single line comments start with- Any text after these 2 characters to the end of the line will be
ignored.
Multiline comments start with /* and end with */. They stretch across multiple lines until the
closing characters have been found.
-- My Select query
/*
This is my select query.
It grabs all rows of data from the users table
*/

Example 3: sql comment

/* Multi-Line
comment
goes here */

-- Single-Line comment goes here

Tags:

Sql Example