-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add details about decimal, hexadecimal, octal, and binary literals - Add docs for comments - Add info about identifiers - Add info about underscore usage in literals Co-authored by: Manfred Moser <[email protected]>
- Loading branch information
1 parent
f343fff
commit 3ed11fd
Showing
5 changed files
with
117 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Comments | ||
|
||
## Synopsis | ||
|
||
Comments are part of a SQL statement or script that are ignored for processing. | ||
Comments begin with double dashes and extend to the end of the line. Block | ||
comments begin with `/*` and extend to the next occurrence of `*/`, possibly | ||
spanning over multiple lines. | ||
|
||
## Examples | ||
|
||
The following example displays a comment line, a comment after a valid | ||
statement, and a block comment: | ||
|
||
```sql | ||
-- This is a comment. | ||
SELECT * FROM table; -- This comment is ignored. | ||
|
||
/* This is a block comment | ||
that spans multiple lines | ||
until it is closed. */ | ||
``` | ||
|
||
## See also | ||
|
||
[](./comment) |