Comments are used to attach explanatory text to SQL statements or statement blocks. The database server does not execute comments.
The following comment indicators are supported in SQL Anywhere:
-- (Double hyphen) The database server ignores any remaining characters on the line. This is the SQL/2008 comment indicator.
You can add and remove this comment indicator by selecting text and pressing Ctrl+Minus Sign in Interactive SQL or on the SQL tab of the Procedures & Functions window of Sybase Central.
The SQL comment indicator is added to the beginning of each line of the selected text. If no text is selected, the comment indicator is added to the beginning of the current line.
// (Double slash) The double slash has the same meaning as the double hyphen.
You can add and remove this comment indicator by selecting text and pressing Ctrl+Forward Slash in Interactive SQL or on the SQL tab of the Procedures & Functions window of Sybase Central.
The SQL comment indicator is added to the beginning of each line of the selected text. If no text is selected, the comment indicator is added to the beginning of the current line.
/* ... */ (Slash-asterisk) Any characters between the two comment markers are ignored. The two comment markers can be on the same or different lines. Comments indicated in this style can be nested, but nested comments must be balanced. Any comments made inside the comment block must not contain single instances of the starting comment marker. This style of commenting is also called C-style comments.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |