B.2 Oracle Functions

All functions are evaluated by the Sybase database after the gateway has converted them to Sybase SQL.

B.2.1 Functions Not Supported by Sybase

Oracle SQL functions with no equivalent function in Sybase are not supported in DELETE, INSERT, or UPDATE statements, but are evaluated by the Oracle database if the statement is a SELECT statement.

That is, the Oracle database performs post-processing of SELECT statements sent to the gateway.

If an unsupported function is used in a DELETE, INSERT, or UPDATE, statement, the following Oracle error occurs:

ORA-02070: database db_link_name does not support function in this context

B.2.2 Functions Supported by Sybase

The gateway translates the following Oracle database functions in SQL statements to their equivalent Sybase functions.

B.2.2.1 Arithmetic Operators

Arithmetic operators suppoted by Oracle Database Gateway for Sybase.

Oracle Sybase

+

+

-

-

*

*

/

/

B.2.2.2 Comparison Operators

Comparison operators supported by Oracle Database Gateway for Sybase.

Oracle Sybase

=

=

>

>

<

<

>=

>=

<=

<=

<>, !=, ^=

<>, !=

IS NOT NULL

IS NOT NULL

IS NULL

IS NULL

B.2.2.3 Group Functions

Group functions supported by Oracle Database Gateway for Sybase.

Oracle Sybase

AVG

AVG

COUNT

COUNT

MAX

MAX

MIN

MIN

SUM

SUM

B.2.2.4 String Functions

String functions supported by Oracle Database Gateway for Sybase.

Oracle Sybase

||

+ (expression1 + expression2)

ASCII

ASCII

CHR

CHAR

INSTR

CHARINDEX

LENGTH

CHAR_LENGTH

LOWER

LOWER

SUBSTR (second argument cannot be a negative number)

SUBSTRING

UPPER

UPPER

B.2.2.5 Other Functions

Other functions supported by Oracle Database Gateway for Sybase.

Oracle Sybase

ABS

ABS

CEIL

CEILING

COS

COS

EXP

EXP

FLOOR

FLOOR

LN

LOG

LOG

LOG10

MOD

%

NOT NVL

IS NOT NULL

NVL

IS NULL

POWER

POWER

ROUND

ROUND

SIN

SIN

SQRT

SQRT

TAN

TAN