Changing the SQL statement terminator

By default, the SQL editor uses a semicolon ( ; ) as the default statement terminator. You can specify a different statement terminator for the SQL statements in an SQL scrapbook page that you create in the SQL editor.

A statement terminator is specific to the SQL scrapbook page in which you specify it. You can specify different statement terminators in different SQL scrapbook pages. The statement terminator can be a string of one or more case-sensitive characters.

The statement terminator that you specify for an SQL scrapbook page persists every time that you open the page in the SQL editor.

Prerequisite: The SQL scrapbook page for which you want to change the statement terminator must be open in the SQL editor.

To change the statement terminator for the SQL statements in an SQL scrapbook page:

  1. Right-click in the SQL editor, and then click Set Statement Terminator on the pop-up menu.
  2. In the Set Statement Terminator window, type one or more characters to use as the statement terminator and then click OK.
If you specify a statement terminator other than the default, a comment is added to the top of the SQL scrapbook page that indicates the statement terminator that you specified. Existing occurrences of the default statement terminator are not updated in the SQL scrapbook page; you must change them manually.
Related concepts
SQL editor
Related tasks
Creating SQL scrapbook pages
Modifying SQL scrapbook pages in the SQL editor