This project is read-only.

CAST

Converts an expression of one data type to another.

Syntax

CAST ( expression AS data_type)

Arguments

expression: Any valid expression that is convertible to data_type.
data_type:The target system-supplied data type. It must be a primitive (scalar) type.

Examples

select value cast(c.CategoryId as string) from Categories as c
select value cast(c.CategoryId as short) from Categories as c
select value cast(c.CategoryId as long) from Categories as c

Last edited Mar 13, 2013 at 8:09 AM by ansiboy, version 1

Comments

No comments yet.