About 693,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. Comment) (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 22, 2024 · 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), …

  3. Shortcuts to comment and uncomment SQL queries in SQL Server

    Aug 22, 2022 · To comment a single line just use -- at the start position of the line. To comment multiple lines together without highlighting them simpley put /* at the beginning and */ at the …

  4. Slash Star (Block Comment) (Transact-SQL) - SQL Server

    Nov 22, 2024 · Comments can be inserted on a separate line or within a Transact-SQL statement. Multiple-line comments must be indicated by /* and */. A stylistic convention often used for …

  5. Adding SQL Comments to Code - MSSQLTips.com - SQL Server

    Jul 18, 2022 · This SQL tutorial will show how to comment in T-SQL, comment syntax, and offer some advice on best practices regarding commenting. Single Line Comments. There are 2 …

  6. SQL Server: Comments within SQL - TechOnTheNet

    In SQL Server, a comment that starts with /* symbol and ends with */ and can be anywhere in your SQL statement. This method of commenting can span several lines within your SQL. You …

  7. An overview of SQL Comments - SQL Shack

    Oct 19, 2021 · Block or Multi-line SQL Comment. If we comment using the double dash /(–), SQL Server considers it for a single line. If we need to comment out multiple lines, you need to put …

  8. SQL SERVER – Two Different Ways to Comment Code - SQL

    Aug 3, 2007 · SQL Server supports two primary ways to add comments: line comments and block comments. Let’s explore both in detail: 1) Line comments. Line comments begin with two …

  9. Using comments in a SQL Server stored procedure

    3 days ago · SQL Server offers two types of comments in a stored procedure; line comments and block comments. The following examples show you how to add comments using both …

  10. A look at comments - SQL Studies

    Oct 21, 2013 · In SQL Server to comment a single line (or part of a line) you can use a double dash. And to comment a block of code you use /* to start and */ to finish the block.

  11. Some results have been removed
Refresh