Search
 
SCRIPT & CODE EXAMPLE
 

SQL

SQL comment

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

how to comment in sql

-- test 
Comment

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

SQL Comments Within Statements

SELECT *
FROM /* table name here */ Students;
Comment

sql comments

Single line comments start with --
-- Single Line Comments 

Multi-line comments start with /* and end with */.
/*Multi-line comments*/
Comment

SQL Comments

--Select all:
SELECT * FROM Customers;
Comment

sql comment

/* Multi-Line
comment
goes here */

-- Single-Line comment goes here
Comment

SQL Comment

-- Fetching all records from the Students table
SELECT *
FROM Students;
Comment

SQL Comment

-- Fetching all records from the Students table
SELECT *
FROM Students;
Comment

SQL Comments With Statements

SELECT * -- selects all records
FROM Students; -- from the Students table
Comment

PREVIOUS NEXT
Code Example
::  
::  
::  
Sql ::  
Sql ::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
Sql ::  
::  
:: can i use alias in where clause 
::  
Sql ::  
Sql ::  
::  
::  
ADD CONTENT
Topic
Content
Source link
Name
3+1 =