Search
 
SCRIPT & CODE EXAMPLE
 

SQL

SQL comment

/* Multi-Line Comment */
-- Single-Line comment
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 :: attributes of cursor in sql 
Sql :: sql quary intervewi question 
Sql :: psql: error: FATAL: database "odoo" does not exist 
Sql :: inserted row count tsql 
Sql :: above average salary in sql 
Sql :: timestamp to date sql server 
Sql :: t sql first and last day of week 
Sql :: creating a database sql 
Sql :: oracle drop program 
Sql :: sql to excel pgadmin 
Sql :: sql is null and is not null 
Sql :: sql server get week dates from week number 
Sql :: sql day from datetime 
Sql :: tables in sql 
Sql :: update select sql 
Sql :: where name ends in SQL 
Sql :: mac docker mysql 
Sql :: while mysql 
Sql :: insert set mysql 
Sql :: import database from sql file 
Sql :: compare if is null sql 
Sql :: migrations.RunSQL 
Sql :: SQL Delete and Truncate Rows 
Sql :: insert into 
Sql :: casterar postgres 
Sql :: use mysql in java program 
Sql :: load utilities in sql server 
Sql :: mysqlimport: Error: 4166 
Sql :: leftjoin in sql 
Sql :: t-sql update table variale 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =