About 799,000 results
Open links in new tab
  1. SQL Comments - W3Schools

    Comments are used to explain sections of SQL statements, or to prevent execution of SQL statements. Note: Comments are not supported in Microsoft Access databases! Single line …

  2. How to Comment in SQL - LearnSQL.com

    You'd like to comment your code in SQL. Here's the example code: Use -- to comment code till the end of the line. Here is what it looks like: You can write single-line comments in SQL using …

  3. Comment) (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · Use two hyphens (--) for single-line or nested comments. Comments inserted with -- are terminated by a new line, which is specified with a carriage return character (U+000A), …

  4. SQL Comments - GeeksforGeeks

    Jan 10, 2025 · In this article, we will explain different types of SQL comments: single-line comments, multi-line comments, and in-line comments. We’ll also explore their syntax, provide …

  5. How to Comment in SQL: A Beginner’s Guide

    May 18, 2023 · SQL comments come in two forms: single-line comments and multi-line comments (also known as block comments). Single-line comments begin with two dashes (–), while multi …

  6. How to Create Comments in SQL - DataCamp

    May 31, 2024 · In this tutorial, we’ll see how to add comments in SQL to make your code simpler and easier to read. There are three ways to add comments to your SQL queries: Single-Line …

  7. SQL Comment: Syntax, Usage, and Examples - mimo.org

    SQL supports two types of comments: 1. Single-Line Comment. Use two hyphens (--) to write a comment that spans only one line. You can also place a single-line comment at the end of a …

  8. SQL: Comments - TechOnTheNet

    Comments can appear on a single line or span across multiple lines. Let's explore how to comment your SQL statements. There are two syntaxes that you can use to create a comment …

  9. SQL Comments (With Examples) - Programiz

    SQL Comments In SQL, comments are descriptions in the code that help users better understand the intent and functionality of the SQL command. For example, /* This is a multi-line comment …

  10. Comments in SQL (with examples) - CodeChef

    Jun 24, 2024 · Single-line comments are great for quick notes, while multi-line comments work well for longer explanations. Writing comments in SQL is easy. Here's how to do it: Single-line …