inttohex

Description

Returns the platform-independent hexadecimal equivalent of the specified integer.

Syntax

inttohex (integer_expression)

Parameters

integer_expression

is the integer value to be converted to a hexadecimal string.

Examples

Example 1

select inttohex (10)

-------- 
0000000A

Usage

Standards

SQL92 – Compliance level: Transact-SQL extension.

Permissions

Any user can execute inttohex.

See also

Functions convert, hextoint