Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » SQL Anywhere Server - Database Administration » Administering Your Database » SQL Anywhere graphical administration tools » Using Interactive SQL

 

Inserting comments

Comments are used to attach explanatory text to SQL statements or statement blocks. The database server does not execute comments. SQL Anywhere supports the following types of comments: -- (double hyphen), // (double slash), and /* ... */ (slash-asterisk). See Comments.

To add or remove comment indicators

  • To turn existing text into comments, select the text in the SQL Statements pane and press Ctrl+Minus Sign(-) to add double hyphen comment indicators or Ctrl+Forward Slash(/) to add double slash comment indicators. The SQL comment indicator is added to the beginning of each line with selected text.

    If no text is selected, the comment indicator is added to the beginning of the current line.

    To remove a comment indicator, select the text and press Ctrl+Minus Sign(-) to remove double hyphen comment indicators or Ctrl+Forward Slash(/)to remove double slash comment indicators.