This is an old revision of the document!


DRAFT

Omnidex SQL Function: $CONVERT

Description

The $CONVERT function converts a scalar_expression from one data type to another of length n. This function may also be used for formatting data.

See Also: CAST

Syntax

$CONVERT(scalar_expression, datatype, n [,options])

scalar_expression

Required. The original data that is to be converted.

datatype

Required. A valid Omnidex datatype.

n

Required. The length of the newly converted data.

options

Optional. Valid options.

Example

Example 1

SELECT PRODUCTS.PRODUCT_NAME,
 $CONVERT(PRODUCTS.COST,'C STRING',32,'PICTURE"$^^^,^^^,^^^.^^"')
FROM PRODUCTS
 
Back to top
dev/sql/functions/convert.1259974926.txt.gz ยท Last modified: 2016/06/28 22:38 (external edit)