CONV(n,base1,base2)

Description: Returns the result of converting number n from base base1 to base base2.

base1 and base2 should be integers between 2 and 36. x is treated as a BIGINT but may be specified as a string (which may be required for bases above base-10, in which characters A through Z, or equally a through z, may be used).

Returns a string result. Returns a NULL if any argument is NULL. Returns 0 if n is not legal in base1.

Examples:

  • CONV(1001,2,10) returns 9.

  • CONV('FF',16,10) returns 255.

  • CONV('abc',16,10) returns 2748.

  • CONV(16,10,8) returns 20.

  • CONV('abc',16,10) returns 2748.

  • CONV(10101010,2,16) returns AA.

See also: BIN(), HEX(), OCT()

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.122.127