Entering content frame

Function documentation Processing SQL Statements Locate the document in its SAP Library structure

Use

The MaxDB ODBC driver supports the complete ODBC SQL syntax.

Note

Detailed information about the ODBC function calls is provided in the MSDN Library (http://msdn.microsoft.com) in the ODBC Programmer’s Reference, Chapter SQL Statements, Escape Sequences in ODBC, Section Scalar Functions

Functions

Type

Names

Numeric functions

ABS, ACOS, ASIN, ATAN, ATAN2, CEILING, COS, COT, DEGREES, EXP, FLOOR, LOG, MOD, SIGN, SIN, SQRT, TAN, TRUNCATE, PI, RADIANS, ROUND

String functions

CONCAT, LCASE, LEFT, LENGTH, LOCATE, LTRIM, REPLACE, RIGHT, RTRIM, SOUNDEX, SUBSTRING, UCASE,

System functions

DBNAME, IFNULL, USERNAME

Time and date functions

CURDATE, CURTIME, DAYNAME, DAYOFMONTH, DAYOFWEEK, DAYOFYEAR, HOUR, MINUTE, MONTH, MONTHNAME, NOW, SECOND, WEEK, YEAR

Example

SELECT {fn MONTH(NOW())} FROM dual

 

The MaxDB ODBC driver extends the standard SQL syntax in the following areas:

Database Procedures [Page 8]

Cursor Functions [Page 8]

 

Leaving content frame