OQL CAST

1 minute to read Download PDF Edit

The CAST function converts an expression to a specific data type.

The syntax is as follows:

CAST ( expression AS data_type )

expression Specifies the expression to convert.

data_type Specifies the data type to convert the expression to. The data type can be one of the following:

  • BOOLEAN
  • DATETIME
  • FLOAT
  • INTEGER
  • LONG
  • STRING