Escape clause syntax
Because ODBC vendor escape clauses are implemented identically across all products and vendors, ODBC defines a short-form escape clause that includes only the extended SQL text.
Db2 ODBC supports
the following short-form escape clause:
{ extended SQL text } - extended SQL text
- In ODBC, the string of extended SQL that the ODBC driver translates to data source specific SQL.
Db2 ODBC supports
the SQL escape clause X/Open defines with the following long-form
syntax:
--(*vendor(vendor-identifier),
product(product-identifier) extended SQL text*)--
- vendor-identifier
- Vendor identification that is consistent across all of that vendor's SQL products. (For Db2 ODBC, this identifier can be set to either IBM® or Microsoft.)
- product-identifier
- Identifier for an SQL product. (For Db2 ODBC, this identifier is always set to ODBC.)
- extended SQL text
- The same text that the short-form escape clause uses.