10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

System-defined FunctionsScalar FunctionsThere are four types of scalar functions:• data type conversion• numeric• string• dateData Type Conversion FunctionsThe scalar functions require either one or two single-value arguments. Scalarfunctions can be nested to any level. Scalar functions can be used in theselect, insert, update, delete, while, and if statements.The following subsections describe the scalar functions.OpenROAD provides the following data type conversion functions:NameOperandTypeResultTypeDescriptionc(expr) any c Converts any value to a cstringchar(expr) any char Converts any value to a charstringdate(expr)c, char,text, varchardateConverts a c, char, varchar,or text string to internal daterepresentationdecimal(expr,1 < p

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!