Sql comments

This article is tagged with: Sql comments and mysql

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
*/

comment in sql

/* Comment */

SQL comment

/* Multi-Line Comment */
-- Single-Line comment

sql comment

/* Multi-Line
comment
goes here */
-- Single-Line comment goes here

sql comment

--Select all:
SELECT * FROM Customers;

This article is tagged with: Sql comments and mysql