Supported Functions
Table D–2 (Cont.) Comparison Operators
Operator
>
<
>=
<=
<>, !=, ^=
IS NOT NULL
IS NULL
Supported Functions
OracleAS Adapter for IMS/DB enables the use of the following functions in SQL
statements:
String Functions
■
Group Functions
■
Mathematical Functions
■
Table D–3
String Functions
Oracle
Oracle Connect
Function
Function
||
||
Ascii
Ascii
Chr
Chr
Instr
Position
Length
Length
Lower
Lower
Lpad
Lpad
Ltrim
Ltrim
Rpad
Rpad
Rtrim
Rtrim
Substr
Substr
Upper
Upper
Table D–4
Group Functions
Oracle
Oracle Connect
Function
Function
Avg
Avg
Count
Count
D-2 Oracle Application Server Adapters for IMS/DB User's Guide
Usage
Comment
str1 || str2
Returns a string consisting of str1 concatenated with str2
Ascii(c)
Returns the ASCII value of c
Chr(ascii)
Returns the character corresponding to the given ASCII value
Position(str2, str1) Returns an index in str2 to the first occurrence of str1 in str2
Length(str)
Returns the number of bytes of str
Lower(str)
Returns str in lowercase
Lpad(str, n)
Returns str with n leading blanks
Ltrim(str)
Returns str with leading blanks removed
Rpad(str, n)
Returns str with n trailing blanks
Rtrim(str)
Returns str with trailing blanks removed
Substr(str, n [, m]) Returns a substring of str, starting with the nth character and
m characters in length, or until the end of the string if m is not
supplied
Upper(str)
Returns str in uppercase
Usage
Comment
Avg(exp)
Returns the average value of the expression exp
Count(exp)
Returns the count of the expression exp
Need help?
Do you have a question about the Application Server 10.1.3.4 and is the answer not in the manual?
Questions and answers