Conversion functions convert a value from one datatype to another. Generally, the form of the function names follows the convention datatype TO datatype. The first datatype is the input datatype; the last datatype is the output datatype. This section lists the SQL conversion functions.
Syntax |
|
Purpose |
|
Example |
|
Syntax |
|
Purpose |
|
Example |
|
Syntax |
|
Purpose |
|
Example |
|
Syntax |
|
Purpose |
|
Example |
|
Syntax |
|
Purpose |
|
|
|
Example |
|
Syntax |
|
|
|
|
|
|
|
|
|
Example 1 |
|
Example 2 |
|
Notes:
|
|
|
Syntax |
|
Purpose |
|
Example |
|