SQL Comments
SQL Comments
SQL
1. SQL COMMANDS
COMMANDS FOR
FOR BEGINNERS
BEGINNERS
2. CREATE
2. CREATE AA WEB
WEB PAGE
PAGE
SQL Comments
‹ Previous Next ›
SQL Comments
Comments are used to explain sections of SQL
statements, or to prevent execution of SQL
statements.
-- Select all:
SELECT * FROM Customers;
Tutorials Exercises Certificates Services Search...
SQL HOME
SQL Intro
The following example uses a single-line comment
SQL Syntax
to ignore the end of a line:
SQL Select
SQL Select Distinct
SQL Where
Example
SQL Order By
SQL And
SELECT * FROM Customers -- WHERE
SQL Or City='Berlin';
SQL Not
SQL Insert Into
Try it Yourself »
SQL Null Values
SQL Update
SQL Delete
The following example uses a single-line comment
SQL Select Top
to ignore a statement:
SQL Aggregate Functions
SQL Min and Max
SQL Count
Example
SQL Sum
SQL Avg
-- SELECT * FROM Customers;
SQL Like SELECT * FROM Products;
SQL Wildcards
SQL In
Try it Yourself »
SQL Between
SQL Aliases
SQL Joins
SQL Inner Join
SQL Left Join Search for
SQL Right Join
SQL Full Join 1. SQL Database Commands ›
SQL Self Join
SQL Union
2. SQL for Beginners ›
SQL Group By
SQL Having
SQL Exists
3. SQL Select Statement ›
SQL Any, All
SQL Select Into
SQL Insert Into Select
SQL Case
SQL Null Functions
SQL Stored Procedures Multi-line Comments
SQL Comments
Multi-line comments start with /* and end with
SQL Operators */ .
Try it Yourself »
Example