This shows you the differences between two versions of the page.
dev:sql:functions:convert [2009/12/05 01:01] tdo created |
dev:sql:functions:convert [2016/06/28 22:38] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{page>:top_add&nofooter&noeditbtn}} | ||
- | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
- | ====== Omnidex SQL Function: $CONVERT ====== | ||
- | {{page>:sql_bar&nofooter&noeditbtn}} | ||
- | ===== 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 ==== | ||
- | {{page>:bottom_add&nofooter&noeditbtn}} |