JDBC Reference,
Page 25 of 30


[top]
[prev]
[next]
Documentation Top
Global Index
Reference Manual
TOC Index
Grammar index
Developer's Guide
TOC Index
Tuning Cloudscape
TOC Index

JDBC Escape Syntax

JDBC provides a way of smoothing out some of the differences in the way different DBMS vendors implement SQL. This is called escape syntax. Escape syntax signals that the JDBC driver, which is provided by a particular vendor, scans for any escape syntax and converts it into the code that the particular database understands. This makes escape syntax DBMS-independent.

A JDBC escape clause begins and ends with curly braces. A keyword always follows the opening curly brace:

{keyword }

Cloudscape supports the following JDBC escape keywords, which are case-insensitive:

  • CALL (new in Version 3.0)
    The escape keyword for use in CallableStatements.
  • d
    The escape keyword for date formats.
  • oj
    The escape keyword for outer joins.
  • t
    The escape keyword for time formats.
  • ts
    The escape keyword for timestamp formats.

Other JDBC escape keywords are not supported.

NOTE: Cloudscape returns the SQL unchanged in the Connection.nativeSQL call, since the escape syntax is native to SQL-J. In addition, it is unnecessary to call Statement.setEscapeProcessing for this reason.

[top]
[prev]
[next]


Cloudscape Version 3.0
For technical support, go to: www.cloudscape.com and click Support.
Copyright © 1998 and 1999 Cloudscape, Inc. All rights reserved.