Small. Fast. Reliable.
Choose any three.
SQL Comment Syntax

comment-syntax:

-- anything-except-newline newline end-of-input /* anything-except-*/ */

R-32737-17936:[Comments are not SQL commands, but can occur within the text of SQL queries passed to sqlite3_prepare_v2() and related interfaces. ] R-22934-25134:[Comments are treated as whitespace by the parser. ] R-26245-27007:[Comments can begin anywhere whitespace can be found, including inside expressions that span multiple lines. ]

R-26835-34471:[SQL comments begin with two consecutive "-" characters (ASCII 0x2d) and extend up to and including the next newline character (ASCII 0x0a) or until the end of input, whichever comes first. ]

R-35698-25375:[C-style comments begin with "/*" and extend up to and including the next "*/" character pair or until the end of input, whichever comes first. ] R-24016-17929:[C-style comments can span multiple lines. ]

R-62338-03151:[Comments can appear anywhere whitespace can occur, including inside expressions and in the middle of other SQL statements. ] R-41132-04368:[Comments do not nest. ]

This page last modified on 2022-01-08 05:02:57 UTC