Scalar functions
- Last Updated: June 27, 2025
- 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
This section describes the scalar functions that are supported by the JDBC drivers. Note that your database system may not support all these functions. The following table documents the functions supported by individual drivers. Refer to the documentation for your database system to find out which functions are supported by your database.
In addition, you can also determine the supported scalar functions by using DatabaseMetaData methods.
You can use scalar functions in SQL statements with the following syntax:
{fn scalar-function}
where:
- scalar-function
- is a scalar function supported by the drivers, as listed in the following table.
Example:
SELECT id, name FROM emp WHERE name LIKE {fn
UCASE('Smith')}
| Data Store | String Functions | Numeric Functions | Timedate Functions | System Functions |
|---|---|---|---|---|
| Aha! |
|
|
|
|
| Amazon Redshift |
|
|
|
|
| Apache Cassandra |
|
|
|
|
| Apache Hive |
|
|
|
|
| Apache Impala |
|
|
|
|
| Apache Spark SQL |
|
|
|
|
| Autonomous REST Connector |
|
|
|
|
| DB2 |
|
|
|
|
| Denodo |
|
|
|
|
| GitHub |
|
|
|
|
| Google Analytics 4 |
|
|
|
|
| Google BigQuery |
|
|
|
|
| Greenplum |
|
|
|
|
| HubSpot |
|
|
|
|
| Informix |
|
|
|
|
| Jira |
|
|
|
|
| Microsoft Dynamics 365 |
|
|
|
|
| Microsoft SharePoint |
|
|
|
|
| MySQL |
|
|
|
|
| MongoDB |
|
|
|
|
| Oracle |
|
|
|
|
| Oracle Eloqua |
|
|
|
|
| Oracle Sales Cloud |
|
|
|
|
| Oracle Service Cloud |
|
|
|
|
| PostgreSQL |
|
|
|
|
| Progress OpenEdge |
|
|
|
|
| Salesforce |
|
|
|
|
| SAP HANA |
|
|
|
|
| SAP S/4HANA |
|
|
|
|
| Snowflake |
|
|
|
|
| Sybase |
|
|
|
|
| SQL Server |
|
|
|
|
| TeamCity |
|
|
|
|
1 Apache Hive is limited to adding only days to
a timestamp.
2 Apache Impala is limited to adding only
days to a timestamp.
3 Apache Spark SQL is limited to adding only
days to a timestamp.
4 SYSFUN schema.
5 Supported for PostgreSQL 9.1 and higher