SQL escape sequences for JDBC
- Last Updated: August 23, 2019
- 1 minute read
- DataDirect Connectors
- JDBC
- Aha! 6.0
- Amazon Redshift 6.0
- Apache Cassandra 6.0
- Apache Hive 6.0
- Apache Spark SQL 6.0
- Atlassian Jira 6.0
- Autonomous REST Connector 6.0
- Cloudera Impala 5.1
- + 24
Language features, such as outer joins and scalar function calls, are commonly implemented by database systems. The syntax for these features is often database-specific, even when a standard syntax has been defined. JDBC defines escape sequences that contain the standard syntax for the following language features:
- Date, time, and timestamp literals
- Scalar functions such as numeric, string, and data type conversion functions
- Outer joins
- Escape characters for wildcards used in LIKE clauses
Note: The Progress DataDirect MongoDB for JDBC driver also supports the custom function escape
CAST_TO_NATIVE.
The escape sequence used by JDBC is:
{extension}
The escape sequence is recognized and parsed by the drivers, which replaces the escape sequences with data store-specific grammar.