|
注释不是SQL命令,但是会跟随SQL查询文本一起传递到sqlite3_prepare_v2()等相关接口中。注释会被解析器当做空白处理,注释可以添加在任何的空白处,包括跨行的表达式中间。
Comments are not SQL commands, but can occur within the text of
SQL queries passed to sqlite3_prepare_v2() and related interfaces.
Comments are treated as whitespace by the parser.
Comments can begin anywhere whitespace
can be found, including inside expressions that span multiple lines.
SQL注释SQL 以两个连续的"-" 字符(ASCII 0x2d)开始,一直延续到下一个换行符 (ASCII 0x0a)(包括换行符)或者到输入结束,以二者先出现的为准。
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.
C风格的注释以"/*"开始,一直延续到下一个 "*/" (包含 "*/" )或者到输入结束,以二者先出现的为准。C风格注释可以跨越多行。
C-style comments begin
with "/*" and extend up to and including the next "*/" character pair
or until the end of input, whichever comes first. C-style comments
can span multiple lines.
注释可以添加在任何空白的地方,包括表达式中间和其他SQL注释中间。注释是不支持嵌套的。
Comments can appear anywhere whitespace can occur,
including inside expressions and in the middle of other SQL statements.
Comments do not nest.