/* Multi-Line Comment */
-- Single-Line comment
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
*/
SELECT *
FROM /* table name here */ Students;
Single line comments start with --
-- Single Line Comments
Multi-line comments start with /* and end with */.
/*Multi-line comments*/
--Select all:
SELECT * FROM Customers;
/* Multi-Line
comment
goes here */
-- Single-Line comment goes here
-- Fetching all records from the Students table
SELECT *
FROM Students;
-- Fetching all records from the Students table
SELECT *
FROM Students;
SELECT * -- selects all records
FROM Students; -- from the Students table
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 |