SQL Terminator Character

Description

Specifies the SQL statement terminator character used by the Database painter’s Interactive SQL (ISQL) view.

The default terminator character for the ISQL view is a semicolon (;). If a semicolon conflicts with the terminator character used by your DBMS syntax, you can change the painter’s terminator character by specifying a different character in the SQL Terminator Character box in the Database Preferences dialog box. A good choice for a terminator character is the backquote or backprime (`) character.

Changing the terminator character is recommended when you are using the ISQL view to create or execute stored procedures, triggers, and SQL scripts.

Context

In a PocketBuilder application

You cannot set the SQL Terminator Character database preference in a PocketBuilder application script.

In the development environment

In the Database Preferences dialog box in the Database painter, in the SQL Terminator Character box, type the terminator character you want to use.

Default

The default SQL Terminator Character value in the Database Preferences dialog box is a semicolon (;).

Usage

The following are typical situations that might require you to change the default SQL Terminator Character value:

Examples

Example 1

To change the SQL statement terminator character in the ISQL view to a backquote (`), type a backquote in the SQL Terminator Character box in the Database Preferences dialog box.