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

SQL Anywhere 12.0.1 » SQL Anywhere Server - Database Administration » Database administration » SQL Anywhere graphical administration tools » Interactive SQL » Executing SQL statements in Interactive SQL

 

Inserting comments in Interactive SQL

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.

 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.