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 :: mysql curdate between two dates 
Sql :: can i use alias in where clause 
Sql :: joining tables in sql 
Sql :: xampp mysql problem detected port 3306 in use by 
Sql :: oracle procedure teamplate 
Sql :: aggregate functions 
Sql :: sql server port number 
Sql :: ruby sqlite 
Sql :: stored procedure 
Sql :: select * from 
Sql :: select first and last row mysql 
Sql :: between operator 
Sql :: how to define a non primary composite key in sql 
Sql :: mysql procedure 
Sql :: aliasing in sql 
Sql :: Oracle Procedure ex2 
Sql :: create-toys-table-with-toy_name-column 
Sql :: use mysql in java program 
Sql :: nosqlbooster query other collection 
Sql :: how to get one year old query from plan cache 
Sql :: sql int +1 
Sql :: postgres multiple left join causing duplicates jsonb_agg 
Sql :: suse stop MySQL 
Sql :: express api ith mysql data 
Sql :: convert nvarchar to datetime sql 
Sql :: Stack conditions in CASE statement in PL/SQL 
Sql :: mysql where in maintain order 
Sql :: opensuse start MySQL 
Sql :: id INT NOT NULL AUTO_INCREMENT 
Sql :: why we have to set the password for my sql server 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =